OlexG / branham-chat

0 stars 1 forks source link

Css style #11

Closed Sptele closed 2 years ago

Sptele commented 2 years ago

I've been building a simple CSS styling, and I have been trying to add a time report system. To do this, I have modified the server to send metadata instead of a room alongside of a room (metadata contains the room, and time).

Here's an example:

let metadata = {
  time: new Date(),
  room: "default"
}

let package = {
  msg: msg,
  metadata: metadata
}

io.emit('chat message', package)

However, my code is not passing the metadata attribute with the message to the client from the server. Does anyone have any reasons as to why? Maybe something to do with the socket.js file?

OlexG commented 2 years ago

Oh also, is it still broken?

OlexG commented 2 years ago

Just going to merge and fix it up after