-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02a647d
commit 06cda5c
Showing
9 changed files
with
70 additions
and
118 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
domain/src/main/kotlin/tw/waterballsa/gaas/events/SocketioEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
spring/src/main/kotlin/tw/waterballsa/gaas/spring/configs/socketio/SocketIOEventName.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
package tw.waterballsa.gaas.spring.configs.socketio | ||
|
||
enum class SocketIOEventName (val eventName: String){ | ||
CHAT_MESSAGE("CHAT_MESSAGE"), | ||
CHATROOM_JOIN("CHATROOM_JOIN"), | ||
JOIN_ROOM("JOIN_ROOM"), | ||
LEAVE_ROOM("LEAVE_ROOM"), | ||
CONNECT_EVENT("CONNECT_EVENT"), | ||
DISCONNECT("DISCONNECT"); | ||
object SocketIOEventName{ | ||
const val CHAT_MESSAGE = "CHAT_MESSAGE" | ||
const val JOIN_ROOM = "JOIN_ROOM" | ||
const val LEAVE_ROOM = "LEAVE_ROOM" | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...ng/src/main/kotlin/tw/waterballsa/gaas/spring/configs/socketio/event/SocketIOChatEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package tw.waterballsa.gaas.spring.configs.socketio.event | ||
|
||
|
||
data class SocketIOChatEvent( | ||
val from: SocketIOUser = SocketIOUser("", ""), | ||
val content: String = "", | ||
val target: String = "", | ||
var timestamp: String? = null, | ||
){ | ||
fun isLobby() = target == "LOBBY" | ||
} |
7 changes: 7 additions & 0 deletions
7
...ng/src/main/kotlin/tw/waterballsa/gaas/spring/configs/socketio/event/SocketIORoomEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tw.waterballsa.gaas.spring.configs.socketio.event | ||
|
||
data class SocketIORoomEvent( | ||
val target: String = "", | ||
val user: SocketIOUser = SocketIOUser("", ""), | ||
) | ||
|
6 changes: 6 additions & 0 deletions
6
spring/src/main/kotlin/tw/waterballsa/gaas/spring/configs/socketio/event/SocketIOUser.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package tw.waterballsa.gaas.spring.configs.socketio.event | ||
|
||
data class SocketIOUser( | ||
val id: String = "", | ||
val nickname: String = "", | ||
) |
12 changes: 0 additions & 12 deletions
12
spring/src/main/kotlin/tw/waterballsa/gaas/spring/controllers/viewmodel/SocketioViewModel.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters