stomp_websocket library

Functions

connect(String url, { String host, String login, String passcode, List<int> heartbeat, void onConnect(StompClient client, Map<String, String> headers), void onDisconnect(StompClient client), void onError(StompClient client, String message, String detail, Map<String, String> headers), void onFault(StompClient client, dynamic error, dynamic stackTrace) }) Future<StompClient>
Connects a STOMP server, and instantiates a StompClient to represent the connection. [...]
connectWith(WebSocket socket, { String host, String login, String passcode, List<int> heartbeat, void onConnect(StompClient client, Map<String, String> headers), void onDisconnect(StompClient client), void onError(StompClient client, String message, String detail, Map<String, String> headers), void onFault(StompClient client, dynamic error, dynamic stackTrace) }) Future<StompClient>
Connects a STOMP server with the given Web socket. [...]