Kalm

Kalm

Type: object

Static Members
listen(options)
connect(options)
defaults
profiles
serials
transports

Client

Client

Client

Type: object

Example
{
  backlog: [], 
  pending: [], 
  socketTimeout: 300000, 
  connected: 1
}
Static Members
queue(name, wrap)
flush()
subscribe(name, handler)
unsubscribe(name, handler)
write(name, message, payload)
destroy(callback)

Queue

Queue

Queue
Static Members
reset()
add(packet)
bytes()
step()

Internal/Serializer

Serializer

Internal/Serializer

Type: object

Static Members
serialize(frame, channel, packets)
deserialize(payload)

Internal/Sessions

Sessions

Internal/Sessions

Type: object

Static Members
resolve(id)
cleanup(id)

Internal/Encrypter

Password encryption

Internal/Encrypter

Type: object

Static Members
encrypt(bytes, key)
decrypt(bytes, key)

Server

Server class

Server
Example
{
  connections: []
}
Static Members
broadcast(channel, payload)
stop(callback)

serials/JSON

JSON Encoder

serials/JSON

Type: object

Static Members
encode(payload)
decode(payload)

transports/IPC

IPC transport methods

transports/IPC

Type: object

Static Members
listen(handlers, options)
getOrigin(socket)
createSocket(client)
attachSocket(socket, handlers)
stop(server, callback)
send(socket, payload)
disconnect(client, callback)

transports/TCP

TCP transport methods

transports/TCP

Type: object

Static Members
listen(handlers, options)
getOrigin(socket)
createSocket(client)
attachSocket(socket, handlers)
stop(server, callback)
send(socket, payload)
disconnect(client, callback)

transports/UDP

UDP transport methods

transports/UDP

Type: object

Static Members
listen(handlers, options)
getOrigin(socket)
send(socket, payload)
stop(server, callback)
createSocket(client)
attachSocket(socket, handlers)
disconnect(client, callback)