Fixing WebSocket data frames problems