Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

document API #13

Open
nichoth opened this issue Dec 15, 2022 · 2 comments
Open

document API #13

nichoth opened this issue Dec 15, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nichoth
Copy link
Contributor

nichoth commented Dec 15, 2022

Should add docs to the readme about how to use this

const { system } = require('@socketsupply/ssc-node')

system.receive = async (command, value) => {
}
@nichoth nichoth added the enhancement New feature or request label Dec 15, 2022
@nichoth nichoth self-assigned this Dec 15, 2022
@chicoxyzzy
Copy link
Member

chicoxyzzy commented Dec 16, 2022

I think that we need a better API like socket.onMessage(async (command, value) => {})
Also since we made some renaming recently, I think that socket-node would be a better name. WDYT?

@nichoth
Copy link
Contributor Author

nichoth commented Dec 16, 2022

👍 That name is good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants