CloutSocketManager

CloutSocketManager

CloutSocketManager

Constructor

new CloutSocketManager(io)

Source:
Parameters:
Name Type Description
io object socket.io instance

Methods

createNamespace(name)

attaches socket handling to namespace
Source:
Parameters:
Name Type Description
name string

initializeSocketHandlersForFiles(files)

initializes socket handling for files
Source:
Parameters:
Name Type Description
files array

onConnection(socket)

onConnection
Source:
Parameters:
Name Type Description
socket object
Name Type Description
id object

onDisconnect(client)

onDisconnect
Source:
Parameters:
Name Type Description
client object
Name Type Description
id object