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()
+1 -1
View File
@@ -10,4 +10,4 @@ hidden=1
git_commit_sha=unknown
bs_const=DEBUG=false;WEB_SERVER_BASIC_AUTH=false;DASH_THUMBNAILS=false;WEB_SOCKETS=true;CAPTION_INSTANCE_SEARCH=false
bs_const=DEBUG=false;WEB_SERVER_BASIC_AUTH=false;DASH_THUMBNAILS=false;WEB_SOCKETS=false;CAPTION_INSTANCE_SEARCH=false
+1 -1
View File
@@ -29,4 +29,4 @@ playlet_lib_debug_url=http://DEBUG_HOST_IP_ADDRESS:8080/playlet-lib.zip
git_commit_sha=unknown
bs_const=DEBUG=false;WEB_SERVER_BASIC_AUTH=false;DASH_THUMBNAILS=false;WEB_SOCKETS=true
bs_const=DEBUG=false