added websocket related stuff in web init script