WebSocket.receiveMessage
WebSocketMessage receiveMessage()Receive a message from the WebSocket. There could be more than one message in the buffer so you should call this function in a loop until it returns an invalid message.
auto msg = ws.receiveMessage();
if (msg.isValid) writeln("Received: ", msg.as!string);