websocket_universal 0.0.2-dev copy "websocket_universal: ^0.0.2-dev" to clipboard
websocket_universal: ^0.0.2-dev copied to clipboard

outdated

Convenient websocket handler for all platforms (both IO and web/HTML). Websocket messages routing, statuses and other features have easy-to-use interface.

websocket_universal #

CHECKOUT

Easy-to-use interface: #

  1. Only connect() and disconnect() methods to use websocket handler!
  2. Send message to server using [sendMessage(Y messageToServer)] and listen messages coming from server using incomingMessagesStream
  3. Listen to websocket states socketStateStream or all events that are happening logEventStream. Define how you process your messages to and from server and ping/pong interaction using IMessageProcessor<Tin,Yout> generic interface or use convinient SocketMessageProcessor implementation (see example).
void main() {

}

Example postman echo server
Source repository

34
likes
0
pub points
86%
popularity

Publisher

verified publisherdvmatyun.ru

Convenient websocket handler for all platforms (both IO and web/HTML). Websocket messages routing, statuses and other features have easy-to-use interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

json_annotation, meta

More

Packages that depend on websocket_universal