Add ws server

This commit is contained in:
2024-06-18 00:10:00 +02:00
parent f01e13a82d
commit fa6be7f2cf
3 changed files with 18 additions and 0 deletions

5
ws-server/go.mod Normal file
View File

@@ -0,0 +1,5 @@
module main
go 1.22.4
require github.com/gorilla/websocket v1.5.3

2
ws-server/go.sum Normal file
View File

@@ -0,0 +1,2 @@
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=

11
ws-server/main.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"fmt"
"github.com/gorilla/websocket"
)
func main() {
fmt.Println("Hello, World!")
}