Review Board 1.7.16


WebSocket HTTP Module

Review Request #1952 - Created May 29, 2012 and submitted

Joshua Colp
websocket
Reviewers
asterisk-dev
Asterisk
This adds support for WebSocket protocols 7, 8, and 13. These are the most recent protocols. Sending and receiving text/binary frames is supported along with the various operation codes. An API is provided which makes it easy to implement different sub-protocols. Frame reconstruction is supported for situations where desirable (if multiple frames are received they will be reconstructed into a single one) but this can be disabled in situations where streaming is wanted.
Tested using Google Chrome Canary to confirm connection is established and data can be sent and received.

Tested using websocket.py to confirm connection is established and data can be sent and received.

Changes between revision 1 and 2

1 2 3
1 2 3

  1. /include/asterisk/http_websocket.h: Loading...
  2. /include/asterisk/utils.h: Loading...
  3. /main/utils.c: Loading...
  4. /res/res_http_websocket.c: Loading...
  5. /res/res_http_websocket.exports.in: Loading...
/trunk/include/asterisk/utils.h
Diff Revision 1 Diff Revision 2
 
/trunk/main/utils.c
Diff Revision 1 Diff Revision 2
 
/trunk/res/res_http_websocket.c
Diff Revision 1 Diff Revision 2
 
/trunk/res/res_http_websocket.exports.in
Diff Revision 1 Diff Revision 2
 
  1. /include/asterisk/http_websocket.h: Loading...
  2. /include/asterisk/utils.h: Loading...
  3. /main/utils.c: Loading...
  4. /res/res_http_websocket.c: Loading...
  5. /res/res_http_websocket.exports.in: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.