mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-01-11 19:44:44 +00:00
feat: exposes Port and IsListening properties
This commit is contained in:
@@ -15,6 +15,10 @@ namespace PepperDash.Core
|
||||
{
|
||||
private WebSocketServer _wssv;
|
||||
|
||||
public int Port { get { return _wssv.Port; } }
|
||||
|
||||
public bool IsListening { get { return _wssv.IsListening; } }
|
||||
|
||||
private readonly IFormatProvider _formatProvider;
|
||||
|
||||
public DebugWebsocketSink()
|
||||
@@ -33,6 +37,7 @@ namespace PepperDash.Core
|
||||
|
||||
public void StartServerAndSetPort(int port)
|
||||
{
|
||||
Port = port;
|
||||
_wssv = new WebSocketServer(port);
|
||||
_wssv.Start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user