Disable web sockets since they are not used yet

This commit is contained in:
Brahim Hadriche committed 2023-07-07 16:48:45 -04:00
1 parent 3add083f6b
commit e8b48611ca
3 files changed
+8 -6

No files matched your search

@@ -24,11 +24,12 @@ function WebServerLoop()
m.settings = new Http.HttpSettings(m.webServerPort)
' Root at www to get http://IP_ADDRESS:PORT/index.html
m.settings.WwwRoot = "libpkg:/www"
' Short interval to keep polling on web socket messages
m.settings.Timeout = 500
m.server = new Http.HttpServer(m.settings, m)
#if WEB_SOCKETS
' Short interval to keep polling on web socket messages
m.settings.Timeout = 500
m.websocket = new Web.WebSocketServer()
m.websocket.OnMessage(function(context as object)
connection = context.connection
@@ -92,9 +93,10 @@ function WebServerLoop()
while true
m.server.PreWait()
m.websocket.Poll()
#if WEB_SOCKETS
m.websocket.Poll()
#end if
msg = wait(timeout, msgPort)
msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSocketEvent" or msg = invalid
m.server.PostWait()