created hardware adapter and implemented minimal websocket protocol