Skip to content

josephwoodward/ws-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Web Socket Server

A simple Web Socket server written in Go used for learning more about the Web Socket protocol.

Step 1: Establishing the Opening/Closing handshake

// Client

GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 13
// Server

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=

About

Go based Web Sockets Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages