mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
feat: exposes Port and IsListening properties
This commit is contained in:
parent
93c7dbe812
commit
95312a827b
1 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ namespace PepperDash.Core
|
||||||
{
|
{
|
||||||
private WebSocketServer _wssv;
|
private WebSocketServer _wssv;
|
||||||
|
|
||||||
|
public int Port { get { return _wssv.Port; } }
|
||||||
|
|
||||||
|
public bool IsListening { get { return _wssv.IsListening; } }
|
||||||
|
|
||||||
private readonly IFormatProvider _formatProvider;
|
private readonly IFormatProvider _formatProvider;
|
||||||
|
|
||||||
public DebugWebsocketSink()
|
public DebugWebsocketSink()
|
||||||
|
|
@ -33,6 +37,7 @@ namespace PepperDash.Core
|
||||||
|
|
||||||
public void StartServerAndSetPort(int port)
|
public void StartServerAndSetPort(int port)
|
||||||
{
|
{
|
||||||
|
Port = port;
|
||||||
_wssv = new WebSocketServer(port);
|
_wssv = new WebSocketServer(port);
|
||||||
_wssv.Start();
|
_wssv.Start();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue