(rontolisp) docs
← Functions

usocket:socket-accept

(usocket:socket-accept socket &key element-type)

Blocks until a client connects to the given listener and returns the accepted connection socket -- the usocket-compatible wrapper over rontolisp:tcp-accept. :element-type is accepted for compatibility and ignored (a rontolisp socket handle is always bidirectional).

Backend support

  • Interpreter and JVM: full support.
  • WASM: component mode only; Preview 1 is a compile error.
  • Browser playground: not supported.