Skip to content

battorydev/chatroom-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatroom-server [Not implemented yet]

Tech Stack

  • Golang
    • github.com/gorilla/websocket
    • github.com/dancannon/gorethink
  • Rethink DB

Testing web socket handling

let msg = {
 name: 'channel add',
  data: {
    name: 'hardware support'
  }
}

let subMsg = {
  name: 'channel subscribe'
}

let ws = new WebSocket('ws://localhost:9090');
ws.onopen = () => {
  ws.send(JSON.stringify(subMsg))
  ws.send(JSON.stringify(msg))
}

ws.onmessage = (e) => {
  console.log(e.data);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages