15 lines
313 B
C#
15 lines
313 B
C#
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace __NAMESPACE__;
|
||
|
|
||
|
public delegate void NotifyPacket(string data);
|
||
|
|
||
|
public abstract class JRpcTransport {
|
||
|
public event NotifyPacket OnPacket;
|
||
|
public abstract Task Write(string data);
|
||
|
|
||
|
public void DevSendPacket(string data) {
|
||
|
this.OnPacket.Invoke(data);
|
||
|
}
|
||
|
}
|