SocketServer.attach

Attachs an event.

  1. void attach(SocketEventType eventType, SocketEvent!T event)
    class SocketServer(T)
  2. void attach(SocketEventType eventType, SocketEvent!T[] events)

Parameters

eventType SocketEventType

The event type to attach.

event SocketEvent!T

The event handler to attach.

Meta