WebSocket - fixing message (buffer) size settings and checks