{"id":15198352,"url":"https://github.com/sshaplygin/go-socket.io-parser","last_synced_at":"2026-03-06T19:04:23.713Z","repository":{"id":40253016,"uuid":"263997527","full_name":"sshaplygin/go-socket.io-parser","owner":"sshaplygin","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-18T01:11:14.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T15:14:11.016Z","etag":null,"topics":["client-parser","golang","parser","socket-io","socketio-parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sshaplygin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-14T18:44:40.000Z","updated_at":"2022-09-23T14:55:03.000Z","dependencies_parsed_at":"2022-09-12T18:23:52.055Z","dependency_job_id":null,"html_url":"https://github.com/sshaplygin/go-socket.io-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fgo-socket.io-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fgo-socket.io-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fgo-socket.io-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaplygin%2Fgo-socket.io-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshaplygin","download_url":"https://codeload.github.com/sshaplygin/go-socket.io-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605738,"owners_count":19989608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-parser","golang","parser","socket-io","socketio-parser"],"created_at":"2024-09-28T01:03:40.810Z","updated_at":"2026-03-06T19:04:23.674Z","avatar_url":"https://github.com/sshaplygin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-socket.io-parser\n\n## Documentation\n\n- [parser](https://github.com/socketio/socket.io-parser)\n- [docs](https://github.com/socketio/socket.io-protocol)\n\n### Encoding format:\n```\n\u003cpacket type\u003e[\u003ccount of binary attachments\u003e-][\u003cnamespace\u003e,][\u003cacknowledgment id\u003e][JSON-stringified payload without binary]\n+ binary attachment extracted\n+ binary attachment extracted\n```\n\npacket type consists of header + data.\n\n`socketio_parser.encode()` -\u003e `go_socketio_parser.Marshal(packet *parser.Packet) ([]byte, error)` \u003cbr/\u003e\n`socketio_parser.decode()` -\u003e `go_socketio_parser.Unmarshal(data []byte, packet *parser.Packet) error` \u003cbr/\u003e\n\n\n### Methods:\n\nsame approach as `encoding/json`:\n\nEncode by custom writer:\n```go\nerr := go_socketio_parser.NewEncoder(w io.Writer).Encode(packet *Packet)\n```\n\nDecode by custom reader:\n```go\nerr := go_socketio_parser.NewEncoder(r io.Reader).Decode(packet *Packet)\n```\n\n## TODO\n\n* Add validate test cases for invalid payload (link)[https://github.com/socketio/socket.io-parser/blob/main/test/parser.js#L134]\n* Add streaming API\n* Add inner structs\n* Unit tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaplygin%2Fgo-socket.io-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshaplygin%2Fgo-socket.io-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaplygin%2Fgo-socket.io-parser/lists"}