https://github.com/ruffrey/go-socketio09
Socket.IO 0.9.x client for Go
https://github.com/ruffrey/go-socketio09
Last synced: 9 months ago
JSON representation
Socket.IO 0.9.x client for Go
- Host: GitHub
- URL: https://github.com/ruffrey/go-socketio09
- Owner: ruffrey
- License: mit
- Created: 2016-09-10T02:23:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T14:39:20.000Z (almost 10 years ago)
- Last Synced: 2025-01-08T18:50:11.432Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
API is unstable! Beware.
# Golang Socket.IO 0.9.x Client
Socket.IO is a protocol for framing and acking messages over a web socket.
[Socket.IO server](https://github.com/socketio/socket.io/) is implemented in Node.js. Socket.IO 0.9 is an older
version, with a different protocol than Socket.IO 1 and beyond.
This library implements a limited subset of the Socket.IO spec. It is a work in progress.
There were not any other Socket.IO 0.9 compatible libraries at the time I needed this,
which written in go.
## Examples
See the `examples/` folder. Since this client library requires a Socket.IO 0.9 server, there
is one in the `examples/` folder. It requires Node.js (>=0.10) and npm (>=2) to be installed.
To run the example server:
```bash
cd examples
npm install
npm start
```
To run the example go client:
```bash
cd examples
go run basic-client.go
```
## Implemented
- emit json events, and receive json ack
- listen for events
## Unimplemented
- send regular text, json messages (not emitted events) to other socket.io endpoints
- handling some message types: 3, 4, 7
## Known Issues
- protocol level bugs might get buried
## License
MIT. Copyright (c) Jeff H. Parrish 2016. See LICENSE file in this repository.