Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9473a357 authored by bieniusa's avatar bieniusa
Browse files

Fix to forward port

Remove the hard coded port and use the customizable one.
parent 64b5135c
No related branches found
No related tags found
3 merge requests!56Release and publish v1.3.2,!54Release v1.3.2,!53Resolve "Non-default websocket port is ignored"
Pipeline #360052 passed
......@@ -47,7 +47,7 @@ fun connectWebSocket(session: Session) {
var regex = expr.toRegex()
val host = regex.find(session.getServiceUrl())!!.groupValues!!.get(2)
GlobalScope.launch {
client?.webSocket(method = HttpMethod.Get, host = host, port = 8999, path = session.getWebSocketPath()) {
client?.webSocket(method = HttpMethod.Get, host = host, port = session.getWebSocketPort(), path = session.getWebSocketPath()) {
send("""{"appName":""""+session.getDbName()+"""","userId":""""+session.getClientUId()+""""}""")
for (frame in incoming) {
when (frame) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment