ga-wdi-exercises / websocket-arcade

[websockets, mongodb, node, express]
1 stars 12 forks source link

JNajafi Websockets #9

Closed JuliaNajafi closed 8 years ago

JuliaNajafi commented 8 years ago

pictionary ! https://github.com/JuliaNajafi/websockectsLab

(disclaimer: found drawing board code online)

completeness: 4/5 comfort level: 2/5

couldnt figure out a way to somehow associate users with a specific color or username for the chat .. any suggestions for googling ? already looked into socket.join(room) and io.socket.clients() and couldnt get that working

jshawl commented 8 years ago

👍 awesome!

When the user first opens a connection, assign them a color. Then, on each socket send, add their color to the line data - https://github.com/JuliaNajafi/websockectsLab/blob/master/index.js#L32