|
|
1.1 ! moko 1: # WebSocket is available in httpd mode only, see httpd/websocket ! 2: @main[] ! 3: accept: ^try-catch-comment{^websocket:accept[]} ! 4: receive: ^try-catch-comment{^websocket:receive(1)} ! 5: send: ^try-catch-comment{^websocket:send[text]} ! 6: ping: ^try-catch-comment{^websocket:ping[]} ! 7: close: ^try-catch-comment{^websocket:close[]}