socketcluster
socketcluster copied to clipboard
Add safe mode so that SC rejects any invalid non-JSON packet
Right now SC supports non-JSON strings sent using socket.send('This is a message').
It would be nice to add a config option so that it can be disabled and only allow valid SC JSON strings. This could make certain kinds of DoS attacks more expensive and complicated.