starting a polling websocket server by accepting connection in a non
blocking way
receiving messages and handshake in a non blocking way