creating RESTful services over a WebSocket