# Revision history [back]

### MQTT over Websocket?

Hello,

I'm trying to use wireshark to decode MQTT over Websocket traffic...considering Wireshark already decodes both websocket and MQTT traffic over TCP, this doesn't sound too hard, but I haven't been able to do it.

I've tried many iterations and permutations, but in it's simplest form, I want to get a handle to the existing MQTT dissector from TCP port 1883 (standard port for MQTT over TCP) and install it after the Websocket dissector running on port 8083 (stard port for MQTT over Websocket)...although this LUA does not compile, the idea is something like this...

local tcp_dissector_table = DissectorTable.get("tcp.port")

local ws_dissector_table = DissectorTable.get("ws.port")

local mqtt_dissector = tcp_dissector_table:get_dissector(1883)

Am I even approaching this problem the right way?

### MQTT over Websocket?

Hello,

I'm trying to use wireshark to decode MQTT over Websocket traffic...considering Wireshark already decodes both websocket and MQTT traffic over TCP, this doesn't sound too hard, but I haven't been able to do it.

I've tried many iterations and permutations, but in it's simplest form, I want to get a handle to the existing MQTT dissector from TCP port 1883 (standard port for MQTT over TCP) and install it after the Websocket dissector running on port 8083 (stard (standard port for MQTT over Websocket)...although this LUA does not compile, the idea is something like this...

local tcp_dissector_table = DissectorTable.get("tcp.port")

local ws_dissector_table = DissectorTable.get("ws.port")

local mqtt_dissector = tcp_dissector_table:get_dissector(1883)

Am I even approaching this problem the right way?

 3 None grahamb 23476 ●4 ●805 ●226 https://www.wireshark.org

### MQTT over Websocket?

Hello,

I'm trying to use wireshark to decode MQTT over Websocket traffic...considering Wireshark already decodes both websocket and MQTT traffic over TCP, this doesn't sound too hard, but I haven't been able to do it.

I've tried many iterations and permutations, but in it's simplest form, I want to get a handle to the existing MQTT dissector from TCP port 1883 (standard port for MQTT over TCP) and install it after the Websocket dissector running on port 8083 (standard port for MQTT over Websocket)...although this LUA does not compile, the idea is something like this...

local tcp_dissector_table = DissectorTable.get("tcp.port") DissectorTable.get("tcp.port")
local ws_dissector_table = DissectorTable.get("ws.port") DissectorTable.get("ws.port")
local mqtt_dissector = tcp_dissector_table:get_dissector(1883) tcp_dissector_table:get_dissector(1883)