Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p12 certificate files reading #2

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cb4d114
Removed pods
SudoPlz Feb 28, 2019
82ea78d
Changed pkg name
SudoPlz Feb 28, 2019
02b1a1f
Now throwing an error when the user specifies a wrong uri
SudoPlz Mar 1, 2019
8b8e3d7
onError now actually returns the error message (and not just an error…
SudoPlz Mar 1, 2019
738aa57
Making sure we no longer receive bridge null errors
SudoPlz Mar 1, 2019
b52b948
Version bump 0.4.17
SudoPlz Mar 14, 2019
b7e2c2f
Added disconnectAll
SudoPlz Mar 15, 2019
8da9f89
Added disconnectAll
SudoPlz Mar 15, 2019
c93a143
Merge branch 'bin_4_18'
SudoPlz Mar 15, 2019
7976485
disconnectAll no longer receives an argument
SudoPlz Mar 15, 2019
f4c4346
Bumped version .19
SudoPlz Mar 15, 2019
af86485
Removing the clientRef from disconnectAll
SudoPlz Mar 15, 2019
f68e93e
Published 4.20
SudoPlz Mar 15, 2019
d2748c5
Now disconnecting previous sessions on app reload
SudoPlz Mar 15, 2019
c64397d
Bumped version .21
SudoPlz Mar 15, 2019
b8e471e
Added podspec
SudoPlz May 22, 2019
87d1cc8
Bumped version
SudoPlz May 22, 2019
36911d1
Ok fixed the podspec
SudoPlz May 22, 2019
1a06ec7
Bumped version
SudoPlz May 22, 2019
e2da32b
Fixed podspec
SudoPlz May 22, 2019
ee12682
Removed READ_PHONE_STATE permission
SudoPlz May 28, 2019
775c897
Bumped version (0.4.25)
SudoPlz May 28, 2019
f036a86
android link
taoqf May 30, 2019
ba79e53
add typescript definition
taoqf May 30, 2019
13c16e2
Merge pull request #1 from taoqf/master
SudoPlz Jun 3, 2019
28282b8
Added example
SudoPlz Jun 12, 2019
c89d7bb
Updated README
SudoPlz Jun 12, 2019
bb66f4d
Merged w/ master
SudoPlz Jun 12, 2019
4fec778
Readme minor typo
SudoPlz Jun 12, 2019
a7a51f8
Update linking instructions
kirkryan Mar 26, 2020
d6c7b29
Merge pull request #5 from kirkryan/master
SudoPlz Mar 26, 2020
64b55aa
Update README.md
SudoPlz Aug 5, 2020
4175b4d
Update index.js
befaster Jan 15, 2021
fe26d5b
Merge pull request #10 from befaster/patch-1
SudoPlz Jan 15, 2021
a0eec9e
0.4.26
SudoPlz Jan 15, 2021
1a371a3
Updated outdated steps and errors from Readme.md
Jan 22, 2021
58e8376
Merge pull request #11 from prof-lupin/master
SudoPlz Jan 22, 2021
5e8ffcb
Update README.md
SudoPlz Feb 19, 2021
c3c7386
Implemented missing iOS functions
Mar 2, 2021
408ffc6
Added android implementation
Mar 2, 2021
9ab6d05
Updated package.json
spit4520 Mar 9, 2021
c57d953
Patched .gitignore
spit4520 Mar 9, 2021
e78178a
Removed Tabs for Spaces
spit4520 Mar 11, 2021
587d370
Merge pull request #16 from spit4520/master
SudoPlz Mar 11, 2021
bd936a9
0.5.0
SudoPlz Mar 11, 2021
9ac31d9
fix: ts declaration to allow all options on create client method
cscovinopsh Aug 11, 2021
507c199
Merge pull request #22 from cscovino/master
SudoPlz Aug 19, 2021
f8f39d3
Fix AndroidX build error
Aug 11, 2022
21b5986
Merge pull request #29 from leinailychee/patch-1
SudoPlz Aug 11, 2022
7105d21
0.5.1
SudoPlz Aug 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.js
The is a problem with the domain that contains a dash (-)
 e.g. mqtts://test-domain.com
befaster authored Jan 15, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4175b4de1612193873e83e67c48fa0ca33b41b5e
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ module.exports = {
},
createClient: async function(options) {
if(options.uri) {
var pattern = /^((mqtt[s]?|ws[s]?)?:(\/\/)([0-9a-zA-Z_\.]*):?(\d+))$/;
var pattern = /^((mqtt[s]?|ws[s]?)?:(\/\/)([a-z0-9A-Z_\.\-]*):?(\d+))$/;
var matches = options.uri.match(pattern);
if (!matches) {
throw new Error(`Uri passed to createClient ${options.uri} doesn't match a known protocol (mqtt:// or ws://).`);