~glacambre/firenvim

804d6c4bbbdc7f4b679617f88f8136e3b38bee37 — Ghjuvan Lacambre 2 years ago 1014690 master
Revert "lua/firenvim-websocket.lua: fix websocket pong"

This reverts commit c8cd51c3e04a1b1a12cfa21b6b9aaf62c16b983f.
Because of the problem described in
https://github.com/glacambre/firenvim/issues/1265#issuecomment-1000172548 .
1 files changed, 2 insertions(+), 6 deletions(-)

M lua/firenvim-websocket.lua
M lua/firenvim-websocket.lua => lua/firenvim-websocket.lua +2 -6
@@ 138,15 138,11 @@ local function encode_frame(data)
end

local function pong_frame(decoded_frame)
        -- 138: 10001010
        -- 137: 10001010
        -- Fin: 1
        -- RSV{1,2,3}: 0
        -- Opcode: 0xA (pong)
        local payload = ""
        if decoded_frame.payload_data ~= nil then
                payload = decoded_frame.payload_data
        end
        return string.char(138) .. decoded_frame.payload_length .. payload
        return string.char(138) .. decoded_frame.payload_length .. decoded_frame.payload_data
end

local function close_frame()