Skip to content

loeklj/ShawnNovaDocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShawnNovaDocs

NovaDocs

Running socket.io

npm start

Navigate to localhost:3000.

In the console of the browser run:

let socket = io('localhost:9000');

// Create a doc
socket.emit('document', { type: 'create', action: { id: "test", doc: "Hello World" } });

// Update a doc
socket.emit('document', { type: 'update', action: { id: "test", doc: "Hello World and everyone else" } });

// Read the doc
socket.on('test', (...args) => console.log(...args));

socket.emit('document', { type: 'read', action: { id: "test"} });

// Output: Hello World and everyone else

About

NovaDocs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published