Use /ws prefix for websockets

This commit is contained in:
Araozu 2024-05-06 16:12:46 -05:00
parent 7df1cdf646
commit 0a80319564
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ data class DatosLlamarSeq(
fun Routing.juegows() {
webSocket("/api/juego") {
webSocket("/ws/juego") {
for (frame in incoming) when (frame) {
is Frame.Text -> {

View File

@ -11,7 +11,7 @@ data class ConexionNueva(val idJuego: String, val idUsuario: String)
fun Routing.wssala() {
val gson = Gson()
webSocket("/api/socket") {
webSocket("/ws/socket") {
for (frame in incoming) {
when (frame) {