Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

opsdroid/connector-websocket

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

⚠️ DEPRECATED ⚠️ This connector is now built in to opsdroid core. This repository only exists for backward compatibility and will be removed.

opsdroid connector websocket

A connector for opsdroid to listen for messages using websockets.

Usage

This connector is for use when developing applications which will send messages to opsdroid. Messages are sent back and forth using websockets to allow two way realtime conversation.

To connect to the websocket connector you must first request a room and then connect to it via websockets.

[POST] http://host:port/connector/websocket

Request a new websocket id. This method is used for rate limiting. If too many users are connected this message will return a 429 error code until some users disconnect or time out.

Response

{
  "socket": "afbf858c-010d-11e7-abd2-d0a637e991d3"
}

[WEBSOCKET] http://host:port/connector/websocket/{socket}

The websocket end point to connect to. Messages are sent and received as text broadcasts in the socket.

Configuration

connectors:
  - name: websocket
    # optional
    bot-name: "mybot" # default "opsdroid"
    max-connections: 10 # default is 10 users can be connected at once
    connection-timeout: 10 # default 10 seconds before requested socket times out

About

πŸ“‘ A websocket connector for opsdroid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages