initial dumb implementation of websocket server protocol