javascript - SignalR unable to send -
It seems that I have to reconnect to your server, reconnected and has disconnected the client properly events Side Can connect to my server as:
$ Connection.hub.reconnecting (function () {tryingToReconnect = true; NotifyReconnect ();}); $ .connection.hub.reconnected (function () {tryingToReconnect = false;}); $ .connection.hub.disconnected (function () {if (tryingToReconnect) {NotifyReconnect ();}}); $ .connection.hub.start () Done (function () {console.log (chat.state); console.log ( 'now connect, connection id =' + chat.id); success = true; chat. Server. ( "Test");}) failed . (Function () {warning ("failed to connect.");});
For me these messages, send
body {} now connected, connection id = undefined
I get
Unwanted error: Signal R: The data can be sent before the connection should start. Call. Before start () Send ()
is set strange because it seems that connection and I get the following message in the console:
SignalR.Transports.TransportHeartBeat information : 0: connection 8c5d12f8-a0a5- 4bbe-a36c-14e74ddfccbf new SignalR.Transports.TransportHeartBeat Verbose: 0: KeepAlive (8c5d12f8-a0a5-4bbe- a36c-14e74ddfccbf) signal r. Tronssportsktronsportheyrbet verbose: 0: KeepAlive (8c5d12f8-a0a5-4bbe-a36c-14e74ddfccbf) ...
Although not the server sends the client and not the client to the server, but on -Connected / On disconnected events never fire the client side (though they do the client side) What is the reason for this problem?
Comments
Post a Comment