mirror of
https://github.com/amark/gun.git
synced 2026-03-02 15:13:15 +00:00
if wsc doesn't previosuly exist, create a empty option block. add option 'protocols' for wsc that can specify the optional protocols before the options. Options will also only apply to node client websockets; (package 'ws'), browser websockets only take 1 with 1 optional parameter (being the list of protocols to connect with; so I added that optional param for compatibility.