small websocket example; still trying to get the api right