update websocket example following the changes to core