~whereswaldon/pointstar

78c1b1d026fccc7f1313779fe81e3b912899b05e — Chris Waldon 1 year, 7 months ago 334fa1b
feat: make it easy to use ngrok urls for server
2 files changed, 7 insertions(+), 1 deletions(-)

M client/main.go
M client/url-non-js.go
M client/main.go => client/main.go +2 -0
@@ 2,6 2,7 @@ package main

import (
	"context"
	"flag"

	"gioui.org/app"
	"gioui.org/font/gofont"


@@ 16,6 17,7 @@ import (
)

func main() {
	flag.Parse()
	protocol.Register()
	go func() {
		w := app.NewWindow()

M client/url-non-js.go => client/url-non-js.go +5 -1
@@ 2,6 2,10 @@

package main

import "flag"

var wsURL *string = flag.String("ws-url", "wss://xxxxxxxx.ngrok.io/ws", "websocket url for game server")

func GetWSURL() string {
	return ""
	return *wsURL
}