Updated websocket library (To support security error event)

Added event handling (bubbling) for websocket security error