Socket Manager

constructor(host: String, serverPort: Int)

Constructor to init SocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication


constructor(allowMultipleListeners: Boolean)

Constructor to init SocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

Throws

when an error occurred