Add support for https and wss when using domain names
- Nov 28, 2024
-
-
Androz 2091 authored
The shareUrl now uses /app instead of /api as introduces by 62fb2505
-
Androz 2091 authored
When connecting to the websocket server using port 80 (ws) or port 443 (wss) the port is now left blank
-
Androz 2091 authored
Detect when using https and automatically connects using wss. Also added support for port 80/443 when using a domain name.
-
- Nov 27, 2024
-
-
Clément Pit-Claudel authored
-
Clément Pit-Claudel authored
-
Clément Pit-Claudel authored
Use Cask's built-in websocket implementation instead of a separate `java_websocket` server. * jvm/src/main/scala/cs214/webapp/server/web/WebServer.scala: Remove the `WS_PORT` parameter. * jvm/src/main/scala/cs214/webapp/server/web/WebServerRoutes.scala: (getAppInfo): Use `HTTP_PORT` instead of `WS_PORT` in `wsEndpoint` (websocket): New endpoint. * jvm/src/main/scala/cs214/webapp/server/web/WebSocketsCollection.scala: Remove `java_websocket` imports. Change from `WebSocket` to `cask.WsChannelActor`. Rename `appId` to `instanceId` where appropriate. (WebSocketsCollection): Remove the `port` parameter. (connect): New function, replacing the previous `WebSocketServer` instance. * shared/src/main/scala/cs214/webapp/Common.scala: (WS_PORT): Remove. (WebSocket): New endpoint.
-