Files
wren/test/web/websocket_response.wren
T
retoor 5c2269f6a7 feat: add buildmanual target, faker demo, subprocess examples, and contributing sidebar to manual
Add Makefile buildmanual target for manual generation and include faker_demo.wren, subprocess_async_demo.wren, subprocess_concurrent_demo.wren, and subprocess_fiber_demo.wren example scripts. Update manual sidebar across api pages to link new web-server tutorial and contributing section with module architecture, pure-wren/c-backed modules, foreign classes, async patterns, testing, and documentation pages.
2026-01-25 18:02:02 +00:00

13 lines
381 B
JavaScript
Vendored

// retoor <retoor@molodetz.nl>
import "web" for WebSocketResponse
var ws = WebSocketResponse.new()
System.print(ws.isPrepared) // expect: false
System.print(ws.isOpen) // expect: false
var ws2 = WebSocketResponse.new()
System.print(ws2 is WebSocketResponse) // expect: true
System.print(ws2.isPrepared == false) // expect: true
System.print(ws2.isOpen == false) // expect: true