MetaWebSocketMethod.fromMeta constructor

MetaWebSocketMethod.fromMeta(
  1. WebSocketAnnotation annotation
)

Implementation

factory MetaWebSocketMethod.fromMeta(WebSocketAnnotation annotation) {
  return MetaWebSocketMethod(
    ping: annotation.ping,
    mode: annotation.mode,
    triggerOnConnect: annotation.triggerOnConnect,
  );
}