Ejemplo n.º 1
0
 /// <summary>
 /// Start Websocket Server
 /// </summary>
 /// <param name="ip">Listen IPAddress</param>
 /// <param name="port">Port</param>
 /// <param name="token">Password for connecting server</param>
 public void Start(string ip, int port, string token)
 {
     _token       = token;
     _port        = port;
     _ip          = ip;
     _puppetState = _puppetState.Start(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Start Websocket Server
 /// </summary>
 /// <param name="ip">Listen IPAddress</param>
 /// <param name="port">Port</param>
 /// <param name="token">Password for connecting server</param>
 /// <param name="format">Format of the audio stream</param>
 public void Start(string ip, int port, string token, AudioFormat format)
 {
     _format      = format;
     _token       = token;
     _port        = port;
     _ip          = ip;
     _puppetState = _puppetState.Start(this);
 }