C# Class Meteor.Connection

Manages your Meteor connection.
显示文件 Open project: hiddenswitch/Meteor-Unity

Public Methods

Method Description
Connect ( string url ) : Coroutine

Connects to the specified URL. Note, Meteor hosted sites do NOT support wss (secured Webscokets) protocols, while Modulus hosted sites do.

Reconnect ( ) : Coroutine

Reconnect to the server. This is useful to call in an OnApplicationPause(bool pause) when pause is false (resuming)

Private Methods

Method Description
Connection ( ) : System

Method Details

Connect() public static method

Connects to the specified URL. Note, Meteor hosted sites do NOT support wss (secured Webscokets) protocols, while Modulus hosted sites do.
public static Connect ( string url ) : Coroutine
url string URL.
return UnityEngine.Coroutine

Reconnect() public static method

Reconnect to the server. This is useful to call in an OnApplicationPause(bool pause) when pause is false (resuming)
public static Reconnect ( ) : Coroutine
return UnityEngine.Coroutine