Class: Coraline

Coraline

Main Coraline class, it exposes the apis to create CoralineInstances and CoralineClients

new Coraline (sock)

Name Type Description
sock Socket Socket.io socket that will be used to emit and receive signals

Members

sock Socket

Main socket

Methods

create (config)

Creates a CoralineInstance
Name Type Description
config Object Coraline Configuration Object
Name Type Description
max_clients number Max number of clients allowed
password String Security password

login (coraline_id, password)

Connects to a remote Coraline Instance
Name Type Description
coraline_id number Remote Coraline ID
password String Coraline's security password