The simple network manager based on Unity's NetworkManager without players, scenes stuffs focus on network messages callback handles. Intenly made for multiple server purposes
Class named NetworkManagerSimple will handles only an basic callbacks for Server connect, Server disconnect, Server error, Client connect, Client disconnect and Client error
You can inherit the class to handles anatoher messages
- isNetworkActive True if the server or client is active.
- useWebSockets This makes the server listen for WebSockets connections instead of normal transport layer connections.
- networkAddressThe network address currently in use.
- networkPortThe network port currently in use.
- serverBindAddressThe IP address to bind the server to.
- serverBindToIPFlag to tell the server whether to bind to a specific IP address.
- connectionConfigThe network configuration to use.
- maxConnectionsThe maximum number of concurrent network connections to support.
- maxDelayThe maximum delay before sending packets on connections.
- StartClientThis starts a network client. It uses the networkAddress and networkPort properties as the address to connect to.
- StartHostThis starts a network "host" - a server and client in the same application.
- StartServerThis starts a new server.
- StopClientStops the client that the manager is using.
- StopHostThis stops both the client and the server that the manager is using.
- StopServerStops the server that the manager is using.
- OnClientConnectCalled on the client when connected to a server.
- OnClientDisconnectCalled on clients when disconnected from a server.
- OnClientErrorCalled on clients when a network error occurs.
- OnServerConnectCalled on the server when a new client connects.
- OnServerDisconnectCalled on the server when a client disconnects.
- OnServerErrorCalled on the server when a network error occurs for a client connection.
- OnStartClientThis is a hook that is invoked when the client is started.
- OnStartHostThis hook is invoked when a host is started.
- OnStartServerThis hook is invoked when a server is started - including when a host is started.
- OnStopClientThis hook is called when a client is stopped.
- OnStopHostThis hook is called when a host is stopped.
- OnStopServerThis hook is called when a server is stopped - including when a host is stopped.