diff --git a/cmd/tts-room/main.go b/cmd/tts-room/main.go index da29a2c..9454b3f 100644 --- a/cmd/tts-room/main.go +++ b/cmd/tts-room/main.go @@ -1,4 +1,13 @@ package main +import ( + "net/http" + "tts-room/src/server" +) + func main() { + s := server.NewServer() + if err := http.ListenAndServe(":10000", s); err != nil { + panic(err) + } } diff --git a/src/public/index.html b/src/public/index.html new file mode 100644 index 0000000..c6c0c2f --- /dev/null +++ b/src/public/index.html @@ -0,0 +1,77 @@ + + +
+ + + + +|
+ Click "Open" to create a connection to the server, +"Send" to send a message to the server and "Close" to close the connection. +You can change the message and send multiple times. + + + | + + |