Changeset 323 in code for trunk/upstream.go


Ignore:
Timestamp:
Jun 7, 2020, 12:13:46 PM (5 years ago)
Author:
contact
Message:

Add support for WebSocket connections

WebSocket connections allow web-based clients to connect to IRC. This
commit implements the WebSocket sub-protocol as specified by the pending
IRCv3 proposal [1].

WebSocket listeners can now be set up via a "wss" protocol in the
listen directive. The new http-origin directive allows the CORS
allowed origins to be configured.

[1]: https://github.com/ircv3/ircv3-specifications/pull/342

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r318 r323  
    144144
    145145        uc := &upstreamConn{
    146                 conn:                     *newConn(network.user.srv, netIRCConn(netConn), logger),
     146                conn:                     *newConn(network.user.srv, newNetIRCConn(netConn), logger),
    147147                network:                  network,
    148148                user:                     network.user,
Note: See TracChangeset for help on using the changeset viewer.