1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Added support for websocket deflate for mapped connections.

This commit is contained in:
Ylian Saint-Hilaire
2020-08-16 18:58:39 -07:00
parent bce90a454a
commit a5aa411b60
4 changed files with 151 additions and 508 deletions

View File

@@ -101,7 +101,7 @@ namespace MeshCentralRouter
wc.Start(u, server.wshash);
}
private void Wc_onStateChanged(webSocketClient.ConnectionStates wsstate)
private void Wc_onStateChanged(webSocketClient sender, webSocketClient.ConnectionStates wsstate)
{
switch (wsstate)
{
@@ -131,7 +131,7 @@ namespace MeshCentralRouter
UpdateStatus();
}
private void Wc_onStringData(string data)
private void Wc_onStringData(webSocketClient sender, string data, int orglen)
{
if ((state == 2) && ((data == "c") || (data == "cr")))
{
@@ -181,7 +181,7 @@ namespace MeshCentralRouter
}
}
private void Wc_onBinaryData(byte[] data, int offset, int length)
private void Wc_onBinaryData(webSocketClient sender, byte[] data, int offset, int length, int orglen)
{
if (state != 3) return;
kvmControl.ProcessData(data, offset, length);