Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f468a9a0
Commit
f468a9a0
authored
Dec 23, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable websockets for mist. Closes #218
parent
e531c6fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
main.go
cmd/mist/main.go
+4
-0
websockets.go
cmd/utils/websockets.go
+5
-0
No files found.
cmd/mist/main.go
View file @
f468a9a0
...
...
@@ -69,6 +69,10 @@ func run() error {
utils
.
StartRpc
(
ethereum
,
RpcPort
)
}
if
StartWebSockets
{
utils
.
StartWebSockets
(
ethereum
)
}
gui
:=
NewWindow
(
ethereum
,
config
,
clientIdentity
,
KeyRing
,
LogLevel
)
gui
.
stdLog
=
stdLog
...
...
cmd/utils/websockets.go
View file @
f468a9a0
...
...
@@ -3,10 +3,13 @@ package utils
import
(
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/websocket"
"github.com/ethereum/go-ethereum/xeth"
)
var
wslogger
=
logger
.
NewLogger
(
"WS"
)
func
args
(
v
...
interface
{})
[]
interface
{}
{
return
v
}
...
...
@@ -106,6 +109,8 @@ func (self *WebSocketServer) Serv() {
}
func
StartWebSockets
(
eth
*
eth
.
Ethereum
)
{
wslogger
.
Infoln
(
"Starting WebSockets"
)
sock
:=
NewWebSocketServer
(
eth
)
go
sock
.
Serv
()
}
...
...
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