added informative alert if WebSockets not present in the connection.

its not especially easy to test - but it does catch the situation where WebSocket is undefined and throws a more helpful message at the user for feedback.