Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
It is called data update
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Nov 27, 2020
1 parent 48cd7d4 commit b7d0bd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ object DataController {

// parse the data to make sure that it is proper json
val updateData = jsonMapper.readTree(request.bodyAsBytes())
val request = jsonMapper.createObjectNode()
.put("t", "UPDATE_DATA")
val wsRequest = jsonMapper.createObjectNode()
.put("t", "DATA_UPDATE")
.set<ObjectNode>("d", updateData)

// send the data to all instances that are connected
webSocket.broadcast(request)
webSocket.broadcast(wsRequest)

return jsonMapper.createObjectNode().put("success", true)
}
Expand Down

0 comments on commit b7d0bd3

Please sign in to comment.