Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
ufr-online-nodejs-websocket-server
Project
Overview
Details
活动
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
管道
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
活动
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nfc-rfid-reader-sdk
ufr-online-nodejs-websocket-server
Commits
e07ed7d6
Commit
e07ed7d6
撰写
Oct 11, 2021
by
developer34
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Websocket script updated.
家长
cea48a47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ws.js
ws.js
+3
-1
No files found.
ws.js
View file @
e07ed7d6
...
...
@@ -14,8 +14,10 @@ const byteArray = new Uint8Array(7);
byteArray
[
6
]
=
0xe0
;
ws
.
on
(
'connection'
,
function
(
ws
,
req
)
{
const
ip
=
req
.
connection
.
remoteAddress
;
if
(
ip
.
length
==
19
)
if
(
ip
.
length
==
19
||
ip
.
length
==
20
)
{
console
.
log
(
'uFR Online connected: %s'
,
ip
.
substring
(
7
))
ws
.
on
(
'message'
,
function
(
message
)
{
...
...
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
发表评论
map