Use /ws prefix for websockets
This commit is contained in:
parent
7df1cdf646
commit
0a80319564
@ -18,7 +18,7 @@ data class DatosLlamarSeq(
|
|||||||
|
|
||||||
fun Routing.juegows() {
|
fun Routing.juegows() {
|
||||||
|
|
||||||
webSocket("/api/juego") {
|
webSocket("/ws/juego") {
|
||||||
|
|
||||||
for (frame in incoming) when (frame) {
|
for (frame in incoming) when (frame) {
|
||||||
is Frame.Text -> {
|
is Frame.Text -> {
|
||||||
|
@ -11,7 +11,7 @@ data class ConexionNueva(val idJuego: String, val idUsuario: String)
|
|||||||
|
|
||||||
fun Routing.wssala() {
|
fun Routing.wssala() {
|
||||||
val gson = Gson()
|
val gson = Gson()
|
||||||
webSocket("/api/socket") {
|
webSocket("/ws/socket") {
|
||||||
|
|
||||||
for (frame in incoming) {
|
for (frame in incoming) {
|
||||||
when (frame) {
|
when (frame) {
|
||||||
|
Loading…
Reference in New Issue
Block a user