first version for websocket module