(create-connection host port ssl?)
Creates a socket from a host and a port. Returns a map of the socket and readers over its input and output.
Creates a socket from a host and a port. Returns a map of the socket and readers over its input and output.
(end param)
If param is nil, return nil. Otherwise, return param with : prefixed.
If param is nil, return nil. Otherwise, return param with : prefixed.
(register-connection irc)
writes NICK and USER (and optionally PASS) messages to IRC, registering the connection.
writes NICK and USER (and optionally PASS) messages to IRC, registering the connection.
(safe-line-seq rdr)
Get an infinite lazy sequence of lines from a reader.
Get an infinite lazy sequence of lines from a reader.
(set-timeout irc timeout)
Set a timeout on the socket. timeout is in milliseconds.
Set a timeout on the socket. timeout is in milliseconds.
(write-irc-line irc & s)
Writes a line to the IRC connection and fires the raw-log callback. Can take arbitrary arguments, joining them with spaces (like println).
Writes a line to the IRC connection and fires the raw-log callback. Can take arbitrary arguments, joining them with spaces (like println).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close