I tested your code, and it seems to work fine. Please try to test this with Postman. Select New | WebSocket, and use settings from below picture.