fix sockets example

This commit is contained in:
syumai 2024-01-03 23:27:31 +09:00
parent d58c68fe72
commit 115680fa0a
4 changed files with 5 additions and 7 deletions

View File

@ -4,7 +4,7 @@ dev:
.PHONY: build
build:
go run ../../cmd/workers-assets-gen --mode go
go run ../../cmd/workers-assets-gen -mode=go
GOOS=js GOARCH=wasm go build -o ./build/app.wasm .
.PHONY: deploy

View File

@ -1,6 +1,6 @@
# sockets
- makes a TCP connection to tcpbin.com:4242.
- makes a TCP connection to tcpbin.com:4242 and sends message.
## Development
@ -14,7 +14,7 @@ This project requires these tools to be installed globally.
### Commands
```
make dev # run dev server
make build # build Go Wasm binary
make dev # run dev server
make build # build Go Wasm binary
make deploy # deploy worker
```

View File

@ -1,4 +1,4 @@
module github.com/syumai/workers/_examples/fetch
module github.com/syumai/workers/_examples/sockets
go 1.21.3

View File

@ -1,2 +0,0 @@
github.com/syumai/workers v0.1.0 h1:z5QfQR2X+PCKzom7RodpI5J4D5YF7NT7Qwzb9AM9dgY=
github.com/syumai/workers v0.1.0/go.mod h1:alXIDhTyeTwSzh0ZgQ3cb9HQPyyYfIejupE4Z3efr14=