(build-and-register-metrics broker)
Inputs: [broker :- Broker] Returns: #:s{Keyword Object}
Inputs: [broker :- Broker] Returns: #:s{Keyword Object}
(deliver-message broker message sender)
Inputs: [broker :- Broker message :- Message sender :- (s/maybe Connection)]
Message consumer. Delivers a message to the websocket indicated by the :target field
Inputs: [broker :- Broker message :- Message sender :- (s/maybe Connection)] Message consumer. Delivers a message to the websocket indicated by the :target field
(deliver-server-message broker message client)
Inputs: [broker :- Broker message :- Message client :- Connection]
Message consumer. Delivers a message to the websocket indicated by the :target field but only if it still routed to the connection specified by the client argument
Inputs: [broker :- Broker message :- Message client :- Connection] Message consumer. Delivers a message to the websocket indicated by the :target field but only if it still routed to the connection specified by the client argument
(get-connection broker uri)
Inputs: [broker :- Broker uri :- p/Uri] Returns: (s/maybe Connection)
Inputs: [broker :- Broker uri :- p/Uri] Returns: (s/maybe Connection)
(get-controller broker uri)
(get-controller broker uri timeout)
Inputs: ([broker :- Broker uri :- p/Uri] [broker :- Broker uri :- p/Uri timeout :- s/Int]) Returns: (s/maybe Connection)
Inputs: ([broker :- Broker uri :- p/Uri] [broker :- Broker uri :- p/Uri timeout :- s/Int]) Returns: (s/maybe Connection)
(handle-delivery-failure message sender reason)
Inputs: [message :- Message sender :- (s/maybe Connection) reason :- s/Str]
Send an error message with the specified description.
Inputs: [message :- Message sender :- (s/maybe Connection) reason :- s/Str] Send an error message with the specified description.
(log-delivery-failure message reason)
Inputs: [message :- Message reason :- s/Str]
Log message delivery failure given the message and failure reason.
Inputs: [message :- Message reason :- s/Str] Log message delivery failure given the message and failure reason.
Schema for a loggable summary of a message
Schema for a loggable summary of a message
(send-error-message in-reply-to-message description connection)
Inputs: [in-reply-to-message :- (s/maybe Message) description :- s/Str connection :- Connection]
Inputs: [in-reply-to-message :- (s/maybe Message) description :- s/Str connection :- Connection]
(send-message connection message)
Inputs: [connection :- Connection message :- Message]
Inputs: [connection :- Connection message :- Message]
(summarize message)
Inputs: [message :- Message] Returns: MessageLog
Inputs: [message :- Message] Returns: MessageLog
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close