Skip to content

Instantly share code, notes, and snippets.

@decrypted
Last active April 18, 2018 06:29
Show Gist options
  • Save decrypted/06e379c823819d7f49ac41be99045462 to your computer and use it in GitHub Desktop.
Save decrypted/06e379c823819d7f49ac41be99045462 to your computer and use it in GitHub Desktop.
websocket example
SEND: ["subscribe",["bingomatchevent","bingomatch","ubingocard"]]
SEND: ["hello","<session_id>"]
GET: ["hello",{"success":true,"id":"aEP9S7ea","ownid":15180,"name":"danielubet from Germany","role":40,"country":"DE","state":{"auction":true,"chat":true,"id":15180,"email":"danielubet@bsolut.com","role":40,"callsign":"danielubet from Germany","nickname":"danielubet","amlstatus":"unverified","license":"UKRN","timezone":"Europe/Berlin","verified":false,"can_dailyshare_bonus":true,"show_survey":null,"doi":true}}]
GET: ["subscription",{"id":26,"created_at":null,"match_id":8,"bingo_event_id":18,"is_winner_event":null,"event":{"id":18,"active":1,"is_tile":1,"game_id":12,"name":"Test18","img":"https://d1csarkz8obe9u.cloudfront.net/posterpreviews/bingo-night-poster-template-e75a7ea0da76fb4f2484ce5f3af14c84.jpg?ts=1495353"},"channel":"bingomatchevent"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment