Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-ws-transport
Commits
5ab34506
Commit
5ab34506
authored
Aug 23, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx publish version 1.0.3
parent
ba2c9cef
Pipeline
#511
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
.gx/lastpubver
.gx/lastpubver
+1
-1
package.json
package.json
+7
-1
websocket.go
websocket.go
+6
-4
ws_test.go
ws_test.go
+1
-1
No files found.
.gx/lastpubver
View file @
5ab34506
1.0.
2
: Qm
bm2UPVpKxjkjuuZQ1zwsKxqiic9vb9nq11vnVymcCwW1
1.0.
3
: Qm
NmYbZS4Wj9thPdUQ5ySHPFiK8aiJCvKsYHer7NhBhT3L
package.json
View file @
5ab34506
...
...
@@ -24,11 +24,17 @@
"hash"
:
"QmbRuJ16EfPGWuEguoNxwPacpeHFUAZb2XQXVvUt5Vxg5q"
,
"name"
:
"go-libp2p-transport"
,
"version"
:
"1.3.5"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt"
,
"name"
:
"go-net"
,
"version"
:
"0.0.0"
}
],
"gxVersion"
:
"0.4.0"
,
"language"
:
"go"
,
"license"
:
""
,
"name"
:
"ws-transport"
,
"version"
:
"1.0.
2
"
"version"
:
"1.0.
3
"
}
websocket.go
View file @
5ab34506
...
...
@@ -7,13 +7,13 @@ import (
"net/http"
"net/url"
tpt
"github.com/ipfs/go-libp2p-transport"
manet
"github.com/jbenet/go-multiaddr-net"
mafmt
"github.com/whyrusleeping/mafmt"
ws
"golang.org/x/net/websocket"
manet
"gx/ipfs/QmPpRcbNUXauP3zWZ1NJMLWpe4QnmEHrd2ba2D3yqWznw7/go-multiaddr-net"
tpt
"gx/ipfs/QmbRuJ16EfPGWuEguoNxwPacpeHFUAZb2XQXVvUt5Vxg5q/go-libp2p-transport"
mafmt
"gx/ipfs/QmeLQ13LftT9XhNn22piZc3GP56fGqhijuL5Y8KdUaRn1g/mafmt"
ma
"github.com/jbenet/go-multiaddr"
"golang.org/x/net/context"
ma
"gx/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd/go-multiaddr"
)
var
WsProtocol
=
ma
.
Protocol
{
...
...
@@ -221,3 +221,5 @@ func (l *listener) Multiaddr() ma.Multiaddr {
return
l
.
Listener
.
Multiaddr
()
.
Encapsulate
(
wsma
)
}
var
_
tpt
.
Transport
=
(
*
WebsocketTransport
)(
nil
)
ws_test.go
View file @
5ab34506
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"time"
ma
"g
x/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
var
_
=
log
.
Println
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment