How to trigger javascript ws.onerror

Jul 29, 2013 at 6:52 PM
I'm experimenting/learning with your LiveWebChat project in my own MVC3 Asp.Net4 project. The following successfully triggers my client ws.onmessage handler with the msg.
        Protected Overrides Sub HandleException(e As Exception)
            Dim msg As String = "OSSWebSocketSession::HandleException:" & e.Message
        End Sub
  1. But I prefer to handle in ws.onerror. Can I use Me.Send or other method to force client-side onerror for a given session?
  2. Like HTTP, is it possible to set returning application level WebSocket response codes to JavaScript client-side code?