Socket
Socket
Sign inDemoInstall

@geckos.io/client

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geckos.io/client - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

package.json
{
"name": "@geckos.io/client",
"version": "0.0.6",
"version": "0.0.7",
"description": "Real-time client/server communication over UDP using WebRTC and Node.js",

@@ -44,4 +44,4 @@ "main": "lib/index.js",

"dependencies": {
"@geckos.io/common": "0.0.5"
"@geckos.io/common": "0.0.6"
}
}

@@ -13,6 +13,8 @@ <a href="http://geckos.io">

Real-time client/server communication over UDP using WebRTC and Node.js.
Real-time client/server communication over UDP using **WebRTC** and **Node.js**.
Read the [documentation](https://github.com/geckosio/geckos.io) for more information.
This framework fits perfectly with your next **HTML5 real-time multiplayer games** or chat app.
Read the [**documentation**](https://github.com/geckosio/geckos.io) for more information.
## Install

@@ -23,1 +25,25 @@

```
## Use
```js
import geckos from '@geckos.io/client'
// or add a minified version to your index.html file
// https://github.com/geckosio/geckos.io/tree/master/bundles/versions
const channel = geckos()
channel.onConnect(error => {
if (error) {
console.error(error.message)
return
}
channel.on('chat message', data => {
console.log(`You got the message ${data}`)
})
channel.emit('chat message', 'a short message sent to the server')
})
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc