dongwei3712 2018-05-22 18:43 采纳率: 100%
浏览 61

laravel数据库会话驱动程序和websockets

so i'm using the database session driver in laravel and i've faced this weird problem while using socket io. if i connect to the route /room/id without enabling socket.io then it counts as a one connection and is inserted in the database correctly correctly inserted

however if i enable socket.io things get weird and instead of inserting a single row, multiple rows with different id get inserted for each connection and the user_agent column becomes empty just like so incorrectly inserted

  • 写回答

0条回答 默认 最新

    报告相同问题?