Testing
This commit is contained in:
parent
a4effacfa9
commit
d5214286d8
1 changed files with 1 additions and 0 deletions
1
api.js
1
api.js
|
@ -105,6 +105,7 @@ function blogSocket() {
|
||||||
|
|
||||||
blog.addEventListener("message", async (res) => {
|
blog.addEventListener("message", async (res) => {
|
||||||
var data = JSON.parse(res.data)
|
var data = JSON.parse(res.data)
|
||||||
|
console.log(data)
|
||||||
if (data.type == "init") {
|
if (data.type == "init") {
|
||||||
console.log("Connected to Blog Websocket!")
|
console.log("Connected to Blog Websocket!")
|
||||||
module.exports.blogConnected = true
|
module.exports.blogConnected = true
|
||||||
|
|
Loading…
Reference in a new issue