mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Fix connecting on XMLSocket-
This commit is contained in:
parent
44ada661d7
commit
f716fedec5
7 changed files with 19 additions and 28 deletions
|
@ -13,7 +13,7 @@ namespace HISP.Server.Network
|
|||
get
|
||||
{
|
||||
if(actualTransport == null)
|
||||
return "TransportDeterminer";
|
||||
return "Hybrid";
|
||||
else
|
||||
return actualTransport.Name;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace HISP.Server.Network
|
|||
|
||||
if (ConfigReader.EnableWebSocket && WebSocket.IsStartOfHandshake(buffer))
|
||||
{
|
||||
Logger.InfoPrint(this.Ip + " Switching to WebSocket");
|
||||
Logger.DebugPrint(this.Ip + " Switching to WebSocket");
|
||||
actualTransport = new WebSocket();
|
||||
|
||||
actualTransport.passObjects(this.socket, this.onReceiveCallback, this.onDisconnectCallback);
|
||||
|
@ -69,7 +69,7 @@ namespace HISP.Server.Network
|
|||
}
|
||||
else
|
||||
{
|
||||
Logger.InfoPrint(this.Ip + " Switching to XmlSocket");
|
||||
Logger.DebugPrint(this.Ip + " Switching to XmlSocket");
|
||||
actualTransport = new XmlSocket();
|
||||
|
||||
actualTransport.passObjects(this.socket, this.onReceiveCallback, this.onDisconnectCallback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue