Add WebSocket server messages check, close #1650