sample code to test mosca pub\sub over websocket