// implemenets a reactor object with websocket methods package websocket