Fixes to W.JSONSocketConnection