In this Real-Time Communication with Streams Tutorial, you will learn:
- Input & Output Streams
- Opening a Connection
- Reacting to Incoming Messages
- Sending Messages
- Cleaning Up After Yourself
setup
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install go
compile
go build server.go
run
sudo ./server
- UDP Sockets
- WebSockets
Source: