Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff wampy.js ~/forked/wampy.js/src/wampy.js
- 416c416,418
- < const re = /^([0-9a-zA-Z_]+\.)*([0-9a-zA-Z_]+)$/;
- ---
- > // const re = /^([0-9a-zA-Z_]+\.)*([0-9a-zA-Z_]+)$/;
- > // {1,2} para soportar {match: wildcard} foo.bar..baz
- > const re = /^([0-9a-zA-Z_]+\.{1,2})*([0-9a-zA-Z_]+)$/;
- 1117a1120
- > * @param {object} options options like { match: wildcard }
- 1121c1124
- < subscribe (topicURI, callbacks) {
- ---
- > subscribe (topicURI, callbacks, options) {
- 1127a1131,1134
- > if ( typeof options === 'undefined' ){
- > options = {};
- > }
- >
- 1151c1158
- < this._send([WAMP_MSG_SPEC.SUBSCRIBE, reqId, {}, topicURI]);
- ---
- > this._send([WAMP_MSG_SPEC.SUBSCRIBE, reqId, options, topicURI]);
Add Comment
Please, Sign In to add comment