Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WebSocket-BroadCaster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaohe Cao
WebSocket-BroadCaster
Commits
e11bed8b
Commit
e11bed8b
authored
Mar 02, 2016
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No commit message
No commit message
parent
ccbc1ab8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
180 additions
and
89 deletions
+180
-89
http.js
http.js
+168
-84
index.js
index.js
+1
-1
manifest.json
manifest.json
+11
-4
No files found.
http.js
View file @
e11bed8b
This diff is collapsed.
Click to expand it.
index.js
View file @
e11bed8b
...
...
@@ -67,7 +67,7 @@ if (http.Server && http.WebSocketServer) {
socket_dict
[
socket
.
socketId_
]
=
{
socket
:
socket
};
chrome
.
socket
.
getInfo
(
socket
.
socketId_
,
function
(
result
)
{
chrome
.
socket
s
.
tcp
.
getInfo
(
socket
.
socketId_
,
function
(
result
)
{
if
((
result
!==
undefined
)
&&
(
result
.
connected
))
{
socket_dict
[
socket
.
socketId_
].
peer
=
result
.
peerAddress
+
'
:
'
+
result
.
peerPort
;
updateStatus
(
socket_dict
);
...
...
manifest.json
View file @
e11bed8b
...
...
@@ -6,10 +6,17 @@
"minimum_chrome_version"
:
"44"
,
"offline_enabled"
:
true
,
"manifest_version"
:
2
,
"permissions"
:
[
"system.network"
,
{
"socket"
:
[
"tcp-connect"
,
"tcp-listen"
]}],
"permissions"
:
[
"system.network"
],
"sockets"
:
{
"tcp"
:
{
"connect"
:
"*"
},
"tcpServer"
:
{
"listen"
:
"*"
}
},
"app"
:
{
"background"
:
{
...
...
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