-
-
Notifications
You must be signed in to change notification settings - Fork 19
OSL ‐ Websockets
DanimalsTCGYT edited this page Aug 4, 2024
·
5 revisions
Websockets are super useful ways to send data.
websocket = "echo.websocket.org:443".newWebsocket()
// setup a new websocket connection
websocket.wsSend("hi")
mainloop:
// check if there are new messages
if websocket.wsHasnew() (
log websocket.wsGetnext()
// log every message the program recieves
)
if websocket.wsOpen().not (
log "websocket Disconnected"
window "stop"
// close app
)
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here