autogenerate HTML froml WebSocket