Creation of websocket server in binary or text mode and accepting of incoming connections with handshake.