File: README.txt

package info (click to toggle)
trafficserver 9.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,008 kB
  • sloc: cpp: 345,484; ansic: 31,134; python: 24,200; sh: 7,271; makefile: 3,045; perl: 2,261; java: 277; pascal: 119; sql: 94; xml: 2
file content (14 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
To test this plugin, add WebSocket.so to plugin.config, start
Traffic Server, then in a browser JavaScript console enter the
following:

  ws = new WebSocket('ws://some.host:8080/');
  ws.onmessage = function(e) { console.log(e.data); };
  ws.send('hello');

The host name 'some.host' must resolve to the server where Traffic
Server is running. You should get a response from the plugin.

It appears to be necessary that the host name be a valid DNS name on
the server where Traffic Server is running. If not, the WebSocket
connection will fail with an error of 502 "Cannot find server."