Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
Setting transports to websocket by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Feb 23, 2021
1 parent 4bd6aa2 commit 9a503ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ window.Soketi = new Soketi({
key: 'echo-app-key', // should be replaced with the App Key
authHost: 'http://127.0.0.1',
authEndpoint: '/broadcasting/auth',
transports: ['websocket'],
});

// for example
Expand All @@ -57,7 +56,6 @@ window.Soketi = new Soketi({
host: window.location.hostname,
key: 'echo-app-key',
encrypted: true,
transports: ['websocket'],
authorizer: (channel, options) => {
return {
authorize: (socketId, callback) => {
Expand Down
1 change: 1 addition & 0 deletions src/connector/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export abstract class Connector {
cluster: 'ws',
authorizer: null,
namespace: 'App.Events',
transports: ['websocket'],
};

/**
Expand Down

0 comments on commit 9a503ea

Please sign in to comment.