Added assertions for webSockets