CloutSocketHandler

CloutSocketHandler

CloutSocketManager

Constructor

new CloutSocketHandler(opts)

Source:
Parameters:
Name Type Description
opts object handleroptions
Name Type Attributes Description
group string group
event string event name
fn string function to be executed
type string <optional>
typeof event
namespace string <optional>
namespace
hooks array <optional>
middleware for your events [(data, next) => next()]

Methods

attachToClient(socket)

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