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.
Comments
Post a Comment