candidate code for websocket bindings