Liking cljdoc? Tell your friends :D

tdlib-json.core


clientclj

source

client-destroyclj

(client-destroy)
(client-destroy client)

This function should be called on auth state authorizationStateClosed authorizationStateLoggingOut Optionally accepts client if you want to manage it yourself.

This function should be called on auth state authorizationStateClosed authorizationStateLoggingOut
Optionally accepts client if you want to manage it yourself.
sourceraw docstring

client-executeclj

(client-execute message)
(client-execute client message)

Sends a JSON message to underlying client. Return type is JSON string. Only a few requests can be executed synchronously.

Sends a JSON message to underlying client. Return type is JSON string.
Only a few requests can be executed synchronously.
sourceraw docstring

client-receiveclj

(client-receive timeout)
(client-receive client timeout)

Call a receive method of underlying client. Returns JSON or null after timeout and no data. Should not be called from 2 different threads at the same time.

Call a receive method of underlying client. Returns JSON or null after timeout and no data.
Should not be called from 2 different threads at the same time.
sourceraw docstring

client-sendclj

(client-send message)
(client-send client message)

Sends a JSON message to underlying client. Return type is void

Sends a JSON message to underlying client. Return type is void
sourceraw docstring

client-startclj

(client-start path-to-lib verbosity-level)
(client-start path-to-lib verbosity-level buffer-size)

path-to-lib: absolute path to libtdjson.so file verbosity-level: log level

path-to-lib: absolute path to libtdjson.so file
verbosity-level: log level
sourceraw docstring

create-clientclj

(create-client path-to-lib verbosity)
source

init-reader-loopclj

(init-reader-loop timeout)

Timeout that is being used by underlying libtdjson

Timeout that is being used by underlying libtdjson
sourceraw docstring

message-queueclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close