javascript - socket.io - optmize the traffic, by sending less characters -


i have no experiences server client communication. want send objects server , broadcast them connected clients. i'm wondering if connection speed lot , if reduced sent characters in b). can optimize communication?

a) object box:

var box = { width:404, height: 808, featurea: 7897, featureb: 123123, .... } 

b) object box:

var box = { w:404, h: 808, a: 7897, b: 123123, .... } 

you going in right direction. ok reduce characters in object box, make sure gzip compression enabled on webserver , connected client supports it.

http compression - wikipedia


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -