Integrate direct WebSocket-based leaderboard functionality for real-time updates and requests. Refactor related client-side logic to utilize this new connection.
This commit is contained in:
9
cmd/client/lobby_wasm.go
Normal file
9
cmd/client/lobby_wasm.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build js && wasm
|
||||
// +build js,wasm
|
||||
|
||||
package main
|
||||
|
||||
// sendLobbyUpdateToJS sendet Lobby-Updates an das HTML-Interface
|
||||
func (g *Game) sendLobbyUpdateToJS() {
|
||||
g.sendLobbyPlayersToJS()
|
||||
}
|
||||
Reference in New Issue
Block a user