Skip to content

Commit 697a564

Browse files
committed
rename
1 parent 448099c commit 697a564

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ provider:
110110
BROADCAST_API_GATEWAY_URL: !Join [ '', [ 'wss://', !Ref "WebsocketsApi", '.execute-api.', "${self:provider.region}", '.', !Ref "AWS::URLSuffix", '/', "${self:provider.stage}" ] ]
111111
```
112112

113-
Next, create the PHP handler file in `handlers/websocker.php`
113+
Next, create the PHP handler file in `handlers/websocket.php`
114114

115115
```php
116116
<?php

src/ApiGatewayChannel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {EventFormatter} from 'laravel-echo/src/util';
22
import {Channel} from 'laravel-echo/src/channel/channel';
33
import {PresenceChannel} from "laravel-echo/src/channel";
4-
import {OurConnector} from "./OurWebsocket";
4+
import {LaravelEchoApiGatewayWebsocket} from "./LaravelEchoApiGatewayWebsocket";
55

66
/**
77
* This class represents a Pusher channel.
@@ -10,7 +10,7 @@ export class ApiGatewayChannel extends Channel implements PresenceChannel {
1010
/**
1111
* The Pusher client instance.
1212
*/
13-
socket: OurConnector;
13+
socket: LaravelEchoApiGatewayWebsocket;
1414

1515
/**
1616
* The name of the channel.
@@ -32,7 +32,7 @@ export class ApiGatewayChannel extends Channel implements PresenceChannel {
3232
/**
3333
* Create a new class instance.
3434
*/
35-
constructor(socket: OurConnector, name: any, options: any) {
35+
constructor(socket: LaravelEchoApiGatewayWebsocket, name: any, options: any) {
3636
super();
3737

3838
this.name = name;

src/ApiGatewayConnector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {Connector} from "laravel-echo/src/connector/connector";
22
import {ApiGatewayChannel} from "./ApiGatewayChannel";
3-
import {OurConnector} from "./OurWebsocket";
3+
import {LaravelEchoApiGatewayWebsocket} from "./LaravelEchoApiGatewayWebsocket";
44

55
export class ApiGatewayConnector extends Connector
66
{
77
/**
88
* The Socket.io connection instance.
99
*/
10-
socket: OurConnector;
10+
socket: LaravelEchoApiGatewayWebsocket;
1111

1212
/**
1313
* All of the subscribed channel names.
@@ -18,7 +18,7 @@ export class ApiGatewayConnector extends Connector
1818
* Create a fresh Socket.io connection.
1919
*/
2020
connect(): void {
21-
this.socket = new OurConnector(this.options);
21+
this.socket = new LaravelEchoApiGatewayWebsocket(this.options);
2222

2323
return null;
2424

src/LaravelEchoApiGatewayConnector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Connector} from "laravel-echo/src/connector/connector";
2-
import {OurConnector} from "./OurWebsocket";
2+
import {LaravelEchoApiGatewayWebsocket} from "./LaravelEchoApiGatewayWebsocket";
33
import {ApiGatewayChannel} from "./ApiGatewayChannel";
44

55
export const broadcaster = options => new LaravelEchoApiGatewayConnector(options);
@@ -8,7 +8,7 @@ export class LaravelEchoApiGatewayConnector extends Connector {
88
/**
99
* The Socket.io connection instance.
1010
*/
11-
socket: OurConnector;
11+
socket: LaravelEchoApiGatewayWebsocket;
1212

1313
/**
1414
* All of the subscribed channel names.
@@ -19,7 +19,7 @@ export class LaravelEchoApiGatewayConnector extends Connector {
1919
* Create a fresh Socket.io connection.
2020
*/
2121
connect(): void {
22-
this.socket = new OurConnector(this.options);
22+
this.socket = new LaravelEchoApiGatewayWebsocket(this.options);
2323

2424
return null;
2525

src/OurWebsocket.ts renamed to src/LaravelEchoApiGatewayWebsocket.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import {AxiosResponse} from "axios";
44
export type Options = { authEndpoint: string, host: string };
55
export type MessageBody = { event: string, channel?: string, data: object };
66

7-
export class OurConnector
8-
{
7+
export class LaravelEchoApiGatewayWebsocket {
98
buffer: Array<object> = [];
109

1110
options: Options;

0 commit comments

Comments
 (0)