Skip to content

Instantly share code, notes, and snippets.

View FrontSide's full-sized avatar
🐑

David Rieger FrontSide

🐑
  • Dublin, Ireland
View GitHub Profile
@FrontSide
FrontSide / client.go
Last active May 24, 2021 07:39
simple go websocket client
package main
import (
"fmt"
"time"
"github.com/gorilla/websocket"
)
func register() *websocket.Conn {
@FrontSide
FrontSide / server.go
Last active May 24, 2021 07:59
simple go websocket server
package main
import (
"fmt"
"net/http"
"time"
"github.com/gorilla/websocket"
)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="primary" transaction-type="JTA">