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

The event type to attach.

event
Type: SocketEvent!T

The event handler to attach.

Meta