Skip to content

Commit

Permalink
Fix bug: Forget to handle the binary data
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Jan 22, 2018
1 parent fd51934 commit 7064f68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uwsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static void dispach_message(struct uwsc_client *cl)

switch (frame->opcode) {
case WEBSOCKET_OP_TEXT:
case WEBSOCKET_OP_BINARY:
if (cl->onmessage)
cl->onmessage(cl, frame->payload, frame->payload_len, frame->opcode);
break;
Expand Down

0 comments on commit 7064f68

Please sign in to comment.