-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6c2a2ff
Showing
143 changed files
with
20,361 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Chat app using nodeJS server and HTML5 websocket for client side | ||
|
||
* server runs at port 3000 | ||
* websocket is used for the server side, install it via npm | ||
''' | ||
nmp install websocket | ||
''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<link rel="stylesheet" href="src/style.css"> | ||
<title>Web socket example</title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div id="view-messages"> | ||
<span id="status">Connecting...</span><br> | ||
<!-- <div class="message-item-left">This is my first message</div> | ||
<div class="message-item-right"> This is my second message</div> | ||
<div class="message-item-left">This is my first message</div> | ||
<div class="message-item-right"> This is my second message</div> --> | ||
|
||
</div> | ||
<div id="write-message"> | ||
<input type="text" name="message" id="inputMessage" /> | ||
<input type="button" value="Submit" id="sendMessage"> | ||
</div> | ||
</div> | ||
|
||
<script src="src/client.js"></script> | ||
<!-- <script src="src/server.js"></script>--> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.