class Stomp::Client

Overview

Todo make it works with socket and not just websockets Todo support transaction ? Todo support receipt ?

Defined in:

client.cr

Instance Method Summary

Instance Method Detail

def client_in_heartbeat : Int32 #

[View source]
def client_out_heartbeat : Int32 #

[View source]
def connect(accept_version = "1.2", virtual_host = nil, use_connect_frame = true, username = nil, password = nil, in_heartbeat client_in_heartbeat : Int32 = 10000, out_heartbeat client_out_heartbeat : Int32 = 5000, &on_connected) #

[View source]
def connect(accept_version = "1.2", virtual_host = nil, use_connect_frame = true, username = nil, password = nil, in_heartbeat client_in_heartbeat : Int32 = 10000, out_heartbeat client_out_heartbeat : Int32 = 5000) #

[View source]
def heartbeat_tolerance : Float64 #

[View source]
def heartbeat_tolerance=(heartbeat_tolerance : Float64) #

[View source]
def in_heartbeat : Int32 #

[View source]
def on_connected(&on_connected : Frame -> ) #

[View source]
def on_error(&on_error : Frame -> ) #

[View source]
def out_heartbeat : Int32 #

[View source]
def send(destination, body, headers = {} of String => String) #

[View source]
def server_version : String | Nil #

[View source]
def subscribe(destination, ack = Ack::AUTO, headers = {} of String => String, &handler : Frame -> ) #

[View source]
def unsubscribe(sub) #

[View source]