You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `level` being passed to the listener can be `verbose`, `info`, `warning` or `error`. Visit the [logging
243
243
documentation][doc-logging] for more information.
244
244
245
+
## WebSockets
246
+
247
+
You can use websocket as transport. But Cassandra doesn't support this protocol
248
+
so some proxy should be deployed in front of Cassandra, which can handle this transport protocol.
249
+
250
+
```javascript
251
+
constclient=newcassandra.Client({
252
+
transport:'WebSocket',
253
+
contactPoints: [
254
+
// some proxies that support websocket transport
255
+
'127.0.0.1:9043',
256
+
'localhost:9044'
257
+
],
258
+
webSocketOptions: {
259
+
// some client websocket options
260
+
protocolVersion:13,
261
+
...
262
+
}
263
+
});
264
+
```
265
+
266
+
You can configure your websocket client with `webSocketOptions`.
267
+
To properly configure it follow [websocket/ws doc][ws-doc].
268
+
269
+
You also can use websockets over SSL by passing `transport: 'SecureWebSocket'`.
270
+
245
271
## Compatibility
246
272
247
273
The driver supports all versions of Node.js, Cassandra, and DSE that are not EOL at the time of release. Only LTS eligible branches (i.e. even numbered releases) are supported for Node.js. See the [project documentation] for more information about the Node.js release cycle.
@@ -296,4 +322,5 @@ Unless required by applicable law or agreed to in writing, software distributed
0 commit comments