gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite0b75951e0b75951Records: L1 merged and pushed, restart waits for an open connectionmree0b75951/plugins/http1/ws_client.hl

1.4 KB

  1. \* One connected WebSocket peer. Created by NativeWebSocketServer when the
  2. upgrade completes and handed to the connect/message/pong/close events —
  3. never `new`ed by app code. *\
  4. Number id = 0 \\ the native connection id
  5. String cookie = null \\ the Cookie header of the upgrade request, as the browser sent it — the session's name, never readable by page script
  6. String host = null \\ the Host header of the upgrade request, port included — the address the browser dialled (null when it sent none)
  7. Hybrid headers = {} \\ every header of the upgrade request by its lowercase name — `headers['accept-language']` is what this browser asked for
  8. String ip = null \\ the peer's address of the upgrade ("a.b.c.d", the form a request's `remoteAddress` has) — the socket itself, no proxy header; null when the kernel could not say
  9. Boolean secure = false \\ true when this server terminated TLS for the upgrade (today always false: a TLS connection is not upgraded, so a TLS-terminating front reports itself via X-Forwarded-Proto)
  10. \* One text frame to this peer; false when the connection is gone. *\
  11. send(
  12. String text \\ the frame to send
  13. ) {
  14. return __native("http1.ws_send", id, text)
  15. }
  16. \* Ping this peer — the answer arrives as the server's pong event. *\
  17. ping() {
  18. return __native("http1.ws_ping", id)
  19. }
  20. \* Close this connection; the server's close event still fires. *\
  21. close() {
  22. return __native("http1.ws_close", id)
  23. }

Branches

Latest commits

  • e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
  • f2b5db98styles: format styles with nested rules and bare queriesmre
  • f036bab4search: format styles with nested rules and bare queriesmre
  • ef9a9d4asongs: format styles with nested rules and bare queriesmre
  • f22f9aacmain: format styles with nested rules and bare queriesmre
  • f56cd7c7Sync icons from 8176eb1 and verify mixed component sourcesmre
  • d56e5054Sync theme and shared tokens from layouts 17e0f03mre
  • b1362547Re-vendor to Hybriel set day35mre
  • 89e10f08Records: mission 002 rollback wordingmre
  • 9485dee7Records: mission 002 brief (live step)mre
  • 9ba68fe7Records: S1b reviewedmre
  • 193dfff1Records: S1 result, S1b startedmre
  • 028ed776Records: mission 001 continuation S1bmre
  • 1838d7e8Records: S1 startedmre
  • a43fca3fRecords: mission 001 decided pointsmre
  • 41773828Records: statusmre
  • a82c0805Records: mission 001 brief (Style form)mre
  • a4bce6d1Records: ticket push subscriptionmre
  • 14abde3bjukebox: records: Atlas's records moved to worldapi-conductor/archivemre
  • 0433e9a8jukebox: records: gitoria remote added and pushedmre