Skip to content

How to broadcast message #148

Open
Open

Description

@mitmelon

How does the server receive a message and broadcast to all connected clients...

  1. How do you authenticate a client before allowing connections?

Activity

  1. sirn-se commented on Aug 6, 2021

    @sirn-se
    Contributor

    The current server is single connection. Use receive() to receive messages, and any of the send methods to send messages to connected client: https://github.com/Textalk/websocket-php/blob/master/docs/Server.md#sending-messages

    Multi connection support is planned for v1.6.

    This library only concerns reading/writing over websocket. Any application logic need to be built on top of it.

  2. mitmelon commented on Aug 6, 2021

    @mitmelon
    Author

    Ok thanks... Waiting for the update... Then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions