
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/sunshinev/go-space-chat
通过canvas 2d来模拟了3D的视觉效果。
并且在该项目中使用了protobuf来进行前端和后端的通讯协议,这一点非常方便!
WASD
按键来控制上下左右space
空格可以输入消息,按下回车发送消息最新支持使用docker-compose的方式来启动服务,克隆项目后,直接执行下面命令
docker-compose up -d
访问http://localhost:8081
go run main.go
该命令会启动web-server作为静态服务,默认80端口,如果需要修改端口,用下面的命令
go run main.go -web_server 8081
项目启动默认websocket服务端口为9000端口,如果需要修改
go run main.go -socket_server 9001
注意:如果修改websocket端口,同时需要修改js里面的socket端口
前端 Vue+canvas+websocket+protobuf
后端 Golang+websocket+protobuf+goroutine
这里列举几个在实现过程中,遇到的很有意思的问题
protoc -I ./ *.proto --go_out=.
protoc --js_out=import_style=commonjs,binary:. *.proto
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.