update websocket interface

Work in progress