Table of Contents

Class WebInterop

Namespace
Coherence.Transport.Web
Assembly
Coherence.Connection.Web.dll
public static class WebInterop
Inheritance
WebInterop

Methods

Connect(int, string, int, string, string, string, string, string)

public static void Connect(int id, string host, int roomId, string token, string uniqueRoomId, string worldId, string region, string schemaId)

Parameters

id int
host string
roomId int
token string
uniqueRoomId string
worldId string
region string
schemaId string

Disconnect(int)

public static void Disconnect(int id)

Parameters

id int

InitializeConnection(Action, Action<byte[]>, Action<JsError>)

public static int InitializeConnection(Action onOpen, Action<byte[]> onPacket, Action<JsError> onError)

Parameters

onOpen Action
onPacket Action<byte[]>
onError Action<JsError>

Returns

int

Send(int, byte[], int)

public static void Send(int id, byte[] data, int size)

Parameters

id int
data byte[]
size int