Is it possible to somehow "inject" a script over a WebSocket connection, like receiving a string which is a php script, saved in a buffer / array, which is then executed by the browser ? Or is the only manner to have a file received from the server the http way ?
Inject a php script over a WebSocket connection
Moderator: General Moderators
Inject a php script over a WebSocket connection
Hi,
Is it possible to somehow "inject" a script over a WebSocket connection, like receiving a string which is a php script, saved in a buffer / array, which is then executed by the browser ? Or is the only manner to have a file received from the server the http way ?

Is it possible to somehow "inject" a script over a WebSocket connection, like receiving a string which is a php script, saved in a buffer / array, which is then executed by the browser ? Or is the only manner to have a file received from the server the http way ?