Skip to content

Commit

Permalink
修复onopen和onmessage不存在
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 14, 2015
1 parent 34a353e commit 60aa4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/websocket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@

ws.prototype.onconnecting = func;
ws.prototype.onerror = func;
ws.prototype.onopen = func;
ws.prototype.onmessage = func;

/**
* [send 发送 websocket 消息]
Expand Down

0 comments on commit 60aa4a2

Please sign in to comment.