mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-13 13:44:57 +00:00
37 lines
826 B
C#
37 lines
826 B
C#
using SocketIOClient.Transport;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SocketIOClient.Messages
|
|
{
|
|
public class DisconnectedMessage : IMessage
|
|
{
|
|
public MessageType Type => MessageType.Disconnected;
|
|
|
|
public string Namespace { get; set; }
|
|
|
|
public List<byte[]> OutgoingBytes { get; set; }
|
|
|
|
public List<byte[]> IncomingBytes { get; set; }
|
|
|
|
public int BinaryCount { get; }
|
|
|
|
public int Eio { get; set; }
|
|
|
|
public TransportProtocol Protocol { get; set; }
|
|
|
|
public void Read(string msg)
|
|
{
|
|
Namespace = msg.TrimEnd(',');
|
|
}
|
|
|
|
public string Write()
|
|
{
|
|
if (string.IsNullOrEmpty(Namespace))
|
|
{
|
|
return "41";
|
|
}
|
|
return "41" + Namespace + ",";
|
|
}
|
|
}
|
|
}
|