<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Golang Websockets Gorilla on Roger Welin</title><link>https://rogerwelin.github.io/categories/golang-websockets-gorilla/</link><description>Recent content in Golang Websockets Gorilla on Roger Welin</description><generator>Hugo -- 0.155.0</generator><language>en-us</language><lastBuildDate>Tue, 13 Mar 2018 19:43:43 +0000</lastBuildDate><atom:link href="https://rogerwelin.github.io/categories/golang-websockets-gorilla/feed.xml" rel="self" type="application/rss+xml"/><item><title>Using websockets in golang with gorilla-websocket</title><link>https://rogerwelin.github.io/2018/03/13/using-websockets-in-golang-with-gorilla-websocket/</link><pubDate>Tue, 13 Mar 2018 19:43:43 +0000</pubDate><guid>https://rogerwelin.github.io/2018/03/13/using-websockets-in-golang-with-gorilla-websocket/</guid><description>&lt;p&gt;This will be a tutorial in how to implement websockets in Go using the excellent gorilla/websocket package.
We will build a backend server in Go that accept json from the user and pushes that data on the websocket channel; the frontend will be a simple html file with inline javascript (for simplicity sake) that connects to the go backend and listens on data and updates the html in realtime.&lt;/p&gt;
&lt;!-- more --&gt;
&lt;h2 id="brief-description-of-the-websocket-protocol"&gt;Brief Description of the Websocket Protocol&lt;/h2&gt;
&lt;p&gt;The quick explanation on wikipedia on websocket goes like this:&lt;/p&gt;</description></item></channel></rss>