Provides a web socket connection handler.