{"id":15107723,"url":"https://github.com/mumez/stick","last_synced_at":"2025-10-23T02:31:37.143Z","repository":{"id":147003611,"uuid":"165066523","full_name":"mumez/Stick","owner":"mumez","description":"An event-based socket reconnection layer for Pharo smalltalk","archived":false,"fork":false,"pushed_at":"2023-06-13T03:48:22.000Z","size":63,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-25T21:41:09.418Z","etag":null,"topics":["gemstone","pharo","pharo-smalltalk","reconnect","socket-io"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mumez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-10T13:40:47.000Z","updated_at":"2023-06-08T14:21:40.000Z","dependencies_parsed_at":"2024-09-20T15:32:02.114Z","dependency_job_id":"a10cb1dd-440f-4d35-931c-e08fa358ff11","html_url":"https://github.com/mumez/Stick","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mumez%2FStick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mumez%2FStick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mumez%2FStick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mumez%2FStick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mumez","download_url":"https://codeload.github.com/mumez/Stick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871956,"owners_count":16554471,"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":["gemstone","pharo","pharo-smalltalk","reconnect","socket-io"],"created_at":"2024-09-25T21:41:13.496Z","updated_at":"2025-10-23T02:31:37.128Z","avatar_url":"https://github.com/mumez.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stick\nAn event-based socket reconnection layer for [Pharo](https://pharo.org) smalltalk\n\n## Features\n\n- [Socket.IO](https://socket.io/) like event-based API\n- Supports auto reconnection to a server\n- Supports auto switching to alternative servers\n- Provides base classes for implementing sync/async socket client \n\n## Installation\n\n```smalltalk\n\nMetacello new\n  baseline: 'Stick';\n  repository: 'github://mumez/Stick/src';\n  load.\n```\n\n## Sample Code\n\n```smalltalk\n\nstick := SkStick targetUrl: 'async://google.com:80'.\nstick logger logLevel: 5.\nstick onConnected: [ stick logger info: 'connected' ].\nstick onError: [:ex | ex isReconnectEnded ifTrue: [stick stick]].\nstick onReceive: [ :stream | | size data |\n    data := stream next: 10.\n    Transcript cr; show: data asString.\n].\nstick connect.\n\nstick send: #[0 1 2 3 4 5 6 7 8 9].\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmumez%2Fstick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmumez%2Fstick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmumez%2Fstick/lists"}