Skip to content

Commit

Permalink
send binary data with WebSocket.send
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubuns committed Oct 26, 2012
1 parent adf2672 commit 76e72da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/vibe/http/websockets.d
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ class WebSocket {
@property bool connected() { return m_conn.connected; }
@property bool dataAvailableForRead() { return m_conn.dataAvailableForRead; }

void send(ubyte[] data)
void send(string data)
{
send( (message) { message.write(data); });
send( (message) { message.write(cast(ubyte[])data); });
}
void sendBinary(ubyte[] data)
void send(ubyte[] data)
{
send( (message) { message.write(data); }, FrameOpcode.Binary );
}
Expand Down

0 comments on commit 76e72da

Please sign in to comment.