Guest User

Untitled

a guest
Nov 23rd, 2017
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff wampy.js ~/forked/wampy.js/src/wampy.js
  2. 416c416,418
  3. < const re = /^([0-9a-zA-Z_]+\.)*([0-9a-zA-Z_]+)$/;
  4. ---
  5. > // const re = /^([0-9a-zA-Z_]+\.)*([0-9a-zA-Z_]+)$/;
  6. > // {1,2} para soportar {match: wildcard} foo.bar..baz
  7. > const re = /^([0-9a-zA-Z_]+\.{1,2})*([0-9a-zA-Z_]+)$/;
  8. 1117a1120
  9. > * @param {object} options options like { match: wildcard }
  10. 1121c1124
  11. < subscribe (topicURI, callbacks) {
  12. ---
  13. > subscribe (topicURI, callbacks, options) {
  14. 1127a1131,1134
  15. > if ( typeof options === 'undefined' ){
  16. > options = {};
  17. > }
  18. >
  19. 1151c1158
  20. < this._send([WAMP_MSG_SPEC.SUBSCRIBE, reqId, {}, topicURI]);
  21. ---
  22. > this._send([WAMP_MSG_SPEC.SUBSCRIBE, reqId, options, topicURI]);
Add Comment
Please, Sign In to add comment