First of all, I’m grateful for this plugin you’ve shared. I’d been looking for great WebSockets module written in Lua, but they don’t work nicely with Neovim (most likely memory leak/async issue).
My first attempts using this plugin were not so great either, but I resolved it by adding config=true on lazy.nvim plugin initialization (which is not mentioned in README) and recompiling the websocket_ffi.so binary on rust directory, then replace the existing one.
This was the error I got previously:
E5108: Error executing lua: vim/loader.lua:0: /home/mdrv/.local/share/nvim/lazy/websocket.nvim/lua/websocket/../../rust/lua/websocket_ffi.so: invalid ELF header
stack traceback:
[C]: in function 'error'
vim/loader.lua: in function <vim/loader.lua:0>
[C]: in function 'require'
.../share/nvim/lazy/websocket.nvim/lua/websocket/client.lua:5: in main chunk
[C]: in function 'require'
/home/mdrv/.config/nvim/init.lua:2577: in function </home/mdrv/.config/nvim/init.lua:2576>
It would be helpful to describe the cause or method to resolve the invalid ELF header, since some users might also stumble upon this issue as well.
First of all, I’m grateful for this plugin you’ve shared. I’d been looking for great WebSockets module written in Lua, but they don’t work nicely with Neovim (most likely memory leak/async issue).
My first attempts using this plugin were not so great either, but I resolved it by adding
config=trueon lazy.nvim plugin initialization (which is not mentioned in README) and recompiling thewebsocket_ffi.sobinary onrustdirectory, then replace the existing one.This was the error I got previously:
It would be helpful to describe the cause or method to resolve the
invalid ELF header, since some users might also stumble upon this issue as well.