XSockets Version 5 stopped working today

49 views
Skip to first unread message

Ben Levy

unread,
Oct 16, 2015, 3:18:54 PM10/16/15
to XSockets.NET Developer forum
I have been using XSockets version 5 for about a week but today we don't get any communications.

I have it running as a service using the topsehlf plugin.

When a JavaScript client attempts to connect we get this on the server side

The ApexXSocketService service is now running, press Control+C to exit.
2015-10-16 12:12:34 [Error] Caught exception in XSockets.Server
System.NullReferenceException: Object reference not set to an instance of an object.
   at XSockets.Protocol.XWebSocketProtocol.Validate()
   at XSockets.Protocol.Rfc6455.Rfc6455Protocol.<DoHandshake>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at XSockets.Core.XSocket.ProtocolHandshakeHandler.<HandShake>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at XSockets.Core.XSocket.ProtocolHandshakeHandler.<Read>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at XSockets.Core.XSocket.ProtocolHandshakeHandler.<Init>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at XSockets.Server.XSocketServer.<OnClientConnect>d__27.MoveNext()

On the client side we get

WebSocket connection to 'ws://10.52.111.73:9090/Conference?conferenceid=411822&persistentId=7873bb0c-e215-4003-aa5b-9094576d2718' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET

We have a very importantant Demo next week and I was wondering what we might do.


Ben Levy.

Ben Levy

unread,
Oct 16, 2015, 3:36:05 PM10/16/15
to XSockets.NET Developer forum
This seems to b happening in Google browser with javascript.  When I test with putty using the PuttyProtocol the controllers can all be reached.

Ben Levy

unread,
Oct 16, 2015, 3:45:03 PM10/16/15
to XSockets.NET Developer forum
Things still work on Mozilla firefox.  Looks like google changed something last night.

Ben

Ben Levy

unread,
Oct 17, 2015, 3:37:34 PM10/17/15
to XSockets.NET Developer forum
I have tried using your default.html file from the GitHub XVA-master.XVA-01-01-SimpleMessaging project as follows :

<script type="text/javascript">

//VM

var vm = { messages: ko.observableArray([]) };

ko.applyBindings(vm);

//Connect to the built in "Generic" controller

var conn = new XSockets.WebSocket('ws://127.0.0.1:9091',['generic']);

var controller = conn.controller('generic');

//Method that will be invoked when a message with topic "simple" is sent

controller.on('simple', function(d) {

vm.messages.unshift(d);

});

////Classic simple messaging using "onmessage", will get object, topic and controller as parameters

//controller.onmessage = function(o,t,c) {

// if(t == 'simple')

// vm.messages.unshift(o);

//};

//When button is clicked, send a message

document.querySelector("#send").onclick = function() {

var m = document.querySelector('#message').value;

controller.invoke('simple', { message: m });

};

</script>



When this is tested with the latest release of Google Chrom against the server I have compiled using you example and the topshelf plugin no connection is established with the errors originally posted showing up in the XSockets Server.

When I do the same test in the XVA project it works.

Older browsers still work again the server I compile.

Is there anything I can do to get it to work with the latest version of chrome?

Ben

Ulf Björklund

unread,
Oct 20, 2015, 4:36:46 AM10/20/15
to XSockets.NET Developer forum
Hi Ben

Just tested both to a ConsoleApplication as well as to TopShelf.
I have no issues.
Will verify my version of chrome to make sure.

Regards
Uffe
Reply all
Reply to author
Forward
0 new messages