Disable web sockets since they are not used yet
This commit is contained in:
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)
|
m.settings = new Http.HttpSettings(m.webServerPort)
|
||||||
' Root at www to get http://IP_ADDRESS:PORT/index.html
|
' Root at www to get http://IP_ADDRESS:PORT/index.html
|
||||||
m.settings.WwwRoot = "libpkg:/www"
|
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)
|
m.server = new Http.HttpServer(m.settings, m)
|
||||||
|
|
||||||
#if WEB_SOCKETS
|
#if WEB_SOCKETS
|
||||||
|
' Short interval to keep polling on web socket messages
|
||||||
|
m.settings.Timeout = 500
|
||||||
|
|
||||||
m.websocket = new Web.WebSocketServer()
|
m.websocket = new Web.WebSocketServer()
|
||||||
m.websocket.OnMessage(function(context as object)
|
m.websocket.OnMessage(function(context as object)
|
||||||
connection = context.connection
|
connection = context.connection
|
||||||
@@ -92,9 +93,10 @@ function WebServerLoop()
|
|||||||
|
|
||||||
while true
|
while true
|
||||||
m.server.PreWait()
|
m.server.PreWait()
|
||||||
m.websocket.Poll()
|
#if WEB_SOCKETS
|
||||||
|
m.websocket.Poll()
|
||||||
|
#end if
|
||||||
msg = wait(timeout, msgPort)
|
msg = wait(timeout, msgPort)
|
||||||
msg = wait(0, m.port)
|
|
||||||
msgType = type(msg)
|
msgType = type(msg)
|
||||||
if msgType = "roSocketEvent" or msg = invalid
|
if msgType = "roSocketEvent" or msg = invalid
|
||||||
m.server.PostWait()
|
m.server.PostWait()
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ hidden=1
|
|||||||
|
|
||||||
git_commit_sha=unknown
|
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
|
||||||
@@ -29,4 +29,4 @@ playlet_lib_debug_url=http://DEBUG_HOST_IP_ADDRESS:8080/playlet-lib.zip
|
|||||||
|
|
||||||
git_commit_sha=unknown
|
git_commit_sha=unknown
|
||||||
|
|
||||||
bs_const=DEBUG=false;WEB_SERVER_BASIC_AUTH=false;DASH_THUMBNAILS=false;WEB_SOCKETS=true
|
bs_const=DEBUG=false
|
||||||
Reference in new issue
Block a user