Testing in Go: WebSockets

WebSockets offer duplex communication from a non-trusted source to a server that we own across a TCP socket connection. This means that, instead of continually polling the web server for updates and having to perform the whole TCP dance with each request, we can maintain a single TCP socket connection and then send and listen to messages on said connection. In Go’s ecosystem there are few different implementations of the WebSocket protocol....

March 13, 2020 · 11 min · Ilija