# Zhamao Framework: WSEventListener类 参考

WSEventListener类 参考

## Public 成员函数

| onWebSocketOpen (WebSocketOpenEvent $event)
| onWebSocketMessage (WebSocketMessageEvent $event)
| onWebSocketClose (WebSocketCloseEvent $event)

## 成员函数说明

## onWebSocketClose()

onWebSocketClose | ( | WebSocketCloseEvent | $event | ) |

异常

函数调用图:

## onWebSocketMessage()

onWebSocketMessage | ( | WebSocketMessageEvent | $event | ) |

函数调用图:

## onWebSocketOpen()

onWebSocketOpen | ( | WebSocketOpenEvent | $event | ) |

异常

函数调用图:

该类的文档由以下文件生成:

- src/ZM/Event/Listener/WSEventListener.php