Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
myOwnPad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dario
myOwnPad
Commits
ef64e3ac
Commit
ef64e3ac
authored
9 years ago
by
dario
Browse files
Options
Downloads
Patches
Plain Diff
server: add static html/js files
parent
d60b156d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/index.html
+10
-0
10 additions, 0 deletions
server/index.html
server/ws.js
+25
-0
25 additions, 0 deletions
server/ws.js
with
35 additions
and
0 deletions
server/index.html
0 → 100644
+
10
−
0
View file @
ef64e3ac
<!DOCTYPE HTML>
<html>
<head>
<meta
charset=
"utf-8"
>
<script
type=
"text/javascript"
src=
"/ws.js"
></script>
</head>
<body>
index.html served
</body>
</html>
This diff is collapsed.
Click to expand it.
server/ws.js
0 → 100644
+
25
−
0
View file @
ef64e3ac
var
ws
=
new
WebSocket
(
'
ws://localhost:8000
'
);
console
.
log
(
ws
);
ws
.
onopen
=
function
(
e
)
{
console
.
log
(
"
Connection open...
"
,
e
);
ws
.
send
(
"
hh
"
);
};
ws
.
onmessage
=
function
(
e
)
{
if
(
typeof
e
.
data
===
"
string
"
){
console
.
log
(
"
String message received
"
,
e
,
e
.
data
);
}
else
{
console
.
log
(
"
Other message received
"
,
e
,
e
.
data
);
}
};
ws
.
onerror
=
function
(
e
)
{
console
.
log
(
"
WebSocket Error (dinge):
"
,
e
);
};
ws
.
onclose
=
function
(
e
)
{
console
.
log
(
"
Connection closed
"
,
e
);
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment