http library - cc-tweaked/CC-Tweaked GitHub Wiki

See the documentation at tweaked.cc.

Events

Event websocket_message: url: string, contents: string, binary: boolean

Queued when a websocket recieves a message. One may listen to this event instead of using .receive()

Event websocket_closed: url: string, reason: string|nil, status: number|nil

Queued when a websocket is closed.

⚠️ **GitHub.com Fallback** ⚠️