goSocket
goSocket copied to clipboard
A socket server built by native Go http package.
在 WIN7 64 下配合 GoLand IDE 进行调试,Server 端显示接收数据如下: 127.0.0.1:49185 tcp connect success receive data string: {"ID":8","Session":15646195752952399002015073109532345","Meta":"golang","Content":"message"} receive data string: {"ID":18","Session":15646195752952399002015073109532345","Meta":"golang","Content":"message"} receive data string: {"ID":28","Session":15646195752952399002015073109532345","Meta":"golang","Content":"message"} receive data string: {"ID":38","Session":15646195752952399002015073109532345","Meta":"golang","Content":"message"} receive data...
能不能帮忙给解释下。。。服务端的utils.Depack中如果没有Header怎么处理的?
2017/09/25 20:54:17 127.0.0.1:49219 get message, keeping heartbeating... 2017/09/25 20:54:18 receive data string: {"meta":{"ID":"238","meta":"test"},"con tent":{"meta":{"author":"nucky lu"},"content":"1506344058"}} 2017/09/25 20:54:18 echo the message: {"meta":{"ID":"238","meta":"test"},"conten t":{"content":"1506344058","meta":{"author":"nucky lu"}}} 2017/09/25 20:54:18 127.0.0.1:49219 get message, keeping heartbeating......
看上去简单好用
看上去简单好用,请问在工作生产环境中在用了吗?