Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Error Exception thrown undefined property Ratchet\Server\IoConnection::$app #342

@shahabgohar

Description

@shahabgohar

So i am trying to use Custom WebSocket Handlers in this package . I followed all the steps as stated in the documentation https://docs.beyondco.de/laravel-websockets/1.0/advanced-usage/custom-websocket-handlers.html . After that using a javascript i tried to establish connection and then send message from it , connection establishes but i receive the strange error

Starting the WebSocket server on port 4222...
New connection opened for app key .
Exception ErrorException thrown: Undefined property: Ratchet\Server\IoConnection::$app
Unknown app id: exception ErrorException thrown: Undefined property: Ratchet\Server\IoConnection::$app.

my javascript code is

`
var conn = new WebSocket('ws://127.0.0.1:4222/my-socket');
conn.onopen = function(e) {
conn.send('Hello World!');
};

conn.onmessage = function(e) {
console.log(e.data)
}
`
please Look at it ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions