websocket framework and demo update

websocket framework and demo update
Revert "websocket framework and demo update"

This reverts commit 8b38dc4a47bf8ee83331f6357c79b2ae351b8336.