hippich / Bitcoin-Poker-Room

Sources for Bitcoin Poker Room.
http://betco.in
Other
132 stars 90 forks source link

Issue #65: Add "Broadcast Message" feature to API #98

Closed gg closed 13 years ago

gg commented 13 years ago

Overview

To broadcast a message, the server sends a PacketPokerMessage packet to the client. The client then displays the message in a jpoker.dialog() window.

API resources that were added

Broadcast a message to players

POST /broadcast

Parameters:

{"message": "Hello, players"}

Broadcast a message to a specific player

POST /broadcast/player/:serial

Parameters

{"message": "Hello, player"}

Other notable changes:

gg commented 13 years ago

changing commit comment, then re-requesting pull request