V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kstsca
V2EX  ›  编程

Socket.IO 疑问?如何查看从服务器请求到客户端的数据,走的什么通道,如何查看?以前 ajax 我一般在 firebug 能看到请求数据的集合

  •  
  •   kstsca · Sep 13, 2014 · 4138 views
    This topic created in 4243 days ago, the information mentioned may be changed or developed.
    8 replies    2014-09-17 15:05:19 +08:00
    wanjun
        1
    wanjun  
       Sep 13, 2014
    走websocket,传输的数据流,这个可能看不到吧,找到交互的js进行断点看看
    maxsec
        2
    maxsec  
       Sep 13, 2014
    ws://
    kstsca
        3
    kstsca  
    OP
       Sep 13, 2014
    @maxsec 如何操作 求教
    maxsec
        4
    maxsec  
       Sep 13, 2014
    @kstsca Try google developer tools' network capture.
    maxsec
        5
    maxsec  
       Sep 13, 2014
    in the chrome browser
    meteor
        6
    meteor  
       Sep 13, 2014
    Firefox看WebSocket好像没有Chrome方便.
    kstsca
        7
    kstsca  
    OP
       Sep 16, 2014
    @meteor 中文乱码 如何解决
    meteor
        8
    meteor  
       Sep 17, 2014   ❤️ 1
    @kstsca 代码呢?
    我这里没问题
    浏览器中的frame不准的, 因为没有编码.
    发送和服务器接收那边支持中文就可以了.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4003 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:26 · PVG 18:26 · LAX 03:26 · JFK 06:26
    ♥ Do have faith in what you're doing.