Skip to content
This repository was archived by the owner on Aug 12, 2026. It is now read-only.
This repository was archived by the owner on Aug 12, 2026. It is now read-only.

参加者一覧のリアルタイム更新 #145

Description

@muchoco-dev

resources/js/components/partials/sugoroku.vue

mounted: function () {
        window.Echo.private('member-added-channel.' + this.room.id).listen('MemberAdded', response => {
            // response.userId
            // response.roomId
            // これを使ってユーザ名取得&this.v_membersに追加
        });
}

ユーザ情報が取得できるapiのルーティング

Route::middleware('auth:api')->get('/get_member/{room_id}/{user_id}', 'RoomController@getMember');

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions