Core\Socket\Message
One message on a WebSocket connection, as Core\Socket::receive returns it. A message from the client has text or bytes. A message from a topic has a topic and a value.
Returned by
You get a Core\Socket\Message from these methods:
Members
4 members.
| Member | Signature |
|---|---|
topic | topic(): ?string |
text | text(): ?tainted string |
bytes | bytes(): ?tainted bytes |
value | value(): mixed |
Example apps
These complete apps use this class. You can download and run each one.
- Chat: A chat app with rooms, WebSockets and SQLite. One Novis server sends the pages and runs every connection, with no separate WebSocket server and no library.
