public void ServerStartWebsockets(string address, int port, int maxConnections) { // WebGL host mode should work without errors, even though we can't // start a server in WebGL // (can't call LLAPI's AddWebsocketHost in webgl anyway) if (Application.platform != RuntimePlatform.WebGLPlayer) { server = new LLAPITransport(); server.ServerStartWebsockets(address, port, maxConnections); } else { Debug.LogWarning("ServerStartWebsockets can't be called in WebGL."); } }
public void ServerStartWebsockets(string address, ushort port) { // WebGL host mode should work without errors, even though we can't // start a server in WebGL // (can't call LLAPI's AddWebsocketHost in webgl anyway) if (Application.platform != RuntimePlatform.WebGLPlayer) { #pragma warning disable CS0618 // Type or member is obsolete server = new LLAPITransport(); #pragma warning restore CS0618 // Type or member is obsolete server.ServerStartWebsockets(address, port); } else { Debug.LogWarning("ServerStartWebsockets can't be called in WebGL."); } }
public void ServerStartWebsockets(string address, int port, int maxConnections) { server = new LLAPITransport(); server.ServerStartWebsockets(address, port, maxConnections); }